Skip to content

Commit

Permalink
tbb with clang does not support C++11 emplace method
Browse files Browse the repository at this point in the history
When compiling tbb code with clang, we can't use the C++11 only methods of the classes.
  • Loading branch information
Dr15Jones committed Aug 26, 2015
1 parent 788a003 commit 1d7e4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/StorageFactory/src/StorageAccount.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1d7e4ff

Please sign in to comment.