From 19c7161d04d03ef1b551184496acc8df02058c16 Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Fri, 7 Apr 2017 11:11:53 +1000 Subject: [PATCH] Use ue2::noncopyable instead of deleting copy ctor --- src/rose/rose_build_bytecode.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index dad00cd6..e7b00126 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -278,20 +278,13 @@ struct ExclusiveSubengine { }; /** \brief exclusive info to build tamarama */ -struct ExclusiveInfo { +struct ExclusiveInfo : noncopyable { // subengine info vector subengines; // all the report in tamarama set 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; }; }