From 1d7e4fff30b2781921f7d87ede3aa061406e1b2e Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Wed, 26 Aug 2015 22:34:41 +0200 Subject: [PATCH] tbb with clang does not support C++11 emplace method When compiling tbb code with clang, we can't use the C++11 only methods of the classes. --- Utilities/StorageFactory/src/StorageAccount.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/StorageFactory/src/StorageAccount.cc b/Utilities/StorageFactory/src/StorageAccount.cc index 0c32e104bc19a..f11c735345dd7 100644 --- a/Utilities/StorageFactory/src/StorageAccount.cc +++ b/Utilities/StorageFactory/src/StorageAccount.cc @@ -60,7 +60,7 @@ StorageAccount::StorageClassToken StorageAccount::tokenForStorageClassName( std: } int value = s_nextTokenValue++; - auto ret = s_nameToToken.emplace(iName, value); + auto ret = s_nameToToken.insert(std::make_pair(iName, value)); //don't use value since another thread may have beaten us to here return StorageClassToken(ret.second);