From ee30fa2b0db56bdc2a28a23f4ba6333fd6bcd881 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 7 May 2016 21:23:13 +0000 Subject: [PATCH] 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. --- src/importdxf.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/importdxf.cpp b/src/importdxf.cpp index dd582aa..e8d7804 100644 --- a/src/importdxf.cpp +++ b/src/importdxf.cpp @@ -537,7 +537,6 @@ public: } virtual void addBlock(const DRW_Block &data) { - blocks.emplace(data.name, Block()); readBlock = &blocks[data.name]; readBlock->data = data; }