mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Use ue2::noncopyable instead of deleting copy ctor
This commit is contained in:
parent
51b9146608
commit
19c7161d04
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user