From 4e4c93ff7380ae58d7e21ec10167bcbf3c463359 Mon Sep 17 00:00:00 2001
From: Mike Black W9MDB <mdblack98@yahoo.com>
Date: Thu, 15 Jul 2021 17:26:48 -0500
Subject: [PATCH] Fix c++ rig class

---
 c++/testcpp.cc            | 2 +-
 include/hamlib/rigclass.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/c++/testcpp.cc b/c++/testcpp.cc
index 2d5a9f8bb..9ec2907be 100644
--- a/c++/testcpp.cc
+++ b/c++/testcpp.cc
@@ -8,7 +8,7 @@
 
 int main(int argc, char* argv[])
 {
-	Rig myRig = Rig(RIG_MODEL_DUMMY);
+	Rig myRig {RIG_MODEL_DUMMY};
 
 	try {
 		myRig.setConf("rig_pathname", "/dev/ttyS1");
diff --git a/include/hamlib/rigclass.h b/include/hamlib/rigclass.h
index b578b08de..6ec328669 100644
--- a/include/hamlib/rigclass.h
+++ b/include/hamlib/rigclass.h
@@ -38,7 +38,7 @@ public:
 
     virtual ~Rig();
 #if __cplusplus >= 201103L
-    Rig(const Rig&) = default;
+    Rig(const Rig&) = delete;
     Rig& operator=(const Rig&) = delete;
 #else
     Rig(const Rig&);