]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Use ue2::noncopyable instead of deleting copy ctor
authorMatthew Barr <matthew.barr@intel.com>
Fri, 7 Apr 2017 01:11:53 +0000 (11:11 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 05:19:51 +0000 (15:19 +1000)
src/rose/rose_build_bytecode.cpp

index dad00cd66ca5b21c23e82253a9f5a00d30ed7e7d..e7b001268562fff24dd3d201e3278292228873c3 100644 (file)
@@ -278,20 +278,13 @@ struct ExclusiveSubengine {
 };
 
 /** \brief exclusive info to build tamarama */
-struct ExclusiveInfo {
+struct ExclusiveInfo : noncopyable {
     // subengine info
     vector<ExclusiveSubengine> subengines;
     // all the report in tamarama
     set<ReportID> reports;
     // assigned queue id
     u32 queue;
-
-    // workaround a deficiency in the standard (as explained by STL @ MS) we
-    // need to tell the compiler that ExclusiveInfo is moveable-only by
-    // deleting the copy cons so that vector doesn't get confused
-    ExclusiveInfo() = default;
-    ExclusiveInfo(const ExclusiveInfo &) = delete;
-    ExclusiveInfo(ExclusiveInfo &&) = default;
 };
 
 }