Use ue2::noncopyable instead of deleting copy ctor

This commit is contained in:
Matthew Barr 2017-04-07 11:11:53 +10:00
parent 51b9146608
commit 19c7161d04

View 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;
};
}