Fix compile error for msvc <= 10.

This commit is contained in:
Steven Watanabe
2015-11-12 07:42:56 -07:00
parent 76743c0c6f
commit 694c3012a9
+7 -1
View File
@@ -24,7 +24,13 @@ using ::boost::type_erasure::detail::value_type;
typedef ::std::map<key_type, void(*)()> map_type;
typedef ::boost::shared_mutex mutex_type;
typedef ::std::pair<map_type, mutex_type> data_type;
// std::pair can have problems on older implementations
// when it tries to use the copy constructor of the mutex.
struct data_type
{
map_type first;
mutex_type second;
};
data_type * get_data() {
static data_type result;