diff --git a/Source/build.h b/Source/build.h index aec7b143..c38769de 100644 --- a/Source/build.h +++ b/Source/build.h @@ -171,7 +171,11 @@ class DiagState { template void insert_or_assign(C&c, const K&k, V val) { typename C::value_type item(k, val); +#if defined(_MSC_VER) && _MSC_VER <= 1200 std::pair ret = c.insert(item); +#else + std::pair ret = c.insert(item); +#endif if (!ret.second) ret.first->second = val; } template typename mapped_type_helper::type get_paired_value(const C&c, const K&k, typename mapped_type_helper::type defval) const