diff options
Diffstat (limited to 'src/utils/stl_util.h')
-rw-r--r-- | src/utils/stl_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/stl_util.h b/src/utils/stl_util.h index 4cc081733..0d672fc50 100644 --- a/src/utils/stl_util.h +++ b/src/utils/stl_util.h @@ -43,7 +43,12 @@ template<typename K, typename V> void multimap_insert(std::multimap<K, V>& multimap, const K& key, const V& value) { +#if defined(BOTAN_BUILD_COMPILER_IS_SUN_STUDIO) + // Work around a strange bug in Sun Studio + multimap.insert(std::make_pair<const K, V>(key, value)); +#else multimap.insert(std::make_pair(key, value)); +#endif } } |