summaryrefslogtreecommitdiff
path: root/boost/multi_index/global_fun.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/multi_index/global_fun.hpp')
-rw-r--r--boost/multi_index/global_fun.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/boost/multi_index/global_fun.hpp b/boost/multi_index/global_fun.hpp
index 3ae2afdafc..2c13769100 100644
--- a/boost/multi_index/global_fun.hpp
+++ b/boost/multi_index/global_fun.hpp
@@ -14,6 +14,7 @@
#endif
#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
+#include <boost/detail/workaround.hpp>
#include <boost/mpl/if.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/is_reference.hpp>
@@ -80,7 +81,14 @@ struct const_ref_global_fun_base
Type operator()(
const reference_wrapper<
typename remove_const<
- typename remove_reference<Value>::type>::type>& x)const
+ typename remove_reference<Value>::type>::type>& x
+
+#if BOOST_WORKAROUND(BOOST_MSVC,==1310)
+/* http://lists.boost.org/Archives/boost/2015/10/226135.php */
+ ,int=0
+#endif
+
+ )const
{
return operator()(x.get());
}