Work around an MSVC 2013 bug related to unique_ptr.
The following bug is tickled by calling emplace() on a map with non-copyable but moveable values: https://connect.microsoft.com/VisualStudio/feedbackdetail/view/960021 Fortunately, we don't actually need emplace() here as operator[] will create values if they aren't there.
This commit is contained in:
parent
12c9858d06
commit
ee30fa2b0d
|
@ -537,7 +537,6 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void addBlock(const DRW_Block &data) {
|
virtual void addBlock(const DRW_Block &data) {
|
||||||
blocks.emplace(data.name, Block());
|
|
||||||
readBlock = &blocks[data.name];
|
readBlock = &blocks[data.name];
|
||||||
readBlock->data = data;
|
readBlock->data = data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user