summaryrefslogtreecommitdiff
path: root/boost/type_erasure/detail/any_base.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/type_erasure/detail/any_base.hpp')
-rw-r--r--boost/type_erasure/detail/any_base.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/boost/type_erasure/detail/any_base.hpp b/boost/type_erasure/detail/any_base.hpp
index 0fa316c9ff..b7c4f8c050 100644
--- a/boost/type_erasure/detail/any_base.hpp
+++ b/boost/type_erasure/detail/any_base.hpp
@@ -19,7 +19,9 @@ struct any_base
{
typedef void _boost_type_erasure_is_any;
typedef Derived _boost_type_erasure_derived_type;
- void* _boost_type_erasure_deduce_constructor(...) { return 0; }
+ // volatile makes this a worse match than the default constructor
+ // for msvc-14.1, which can get confused otherwise.
+ void* _boost_type_erasure_deduce_constructor(...) const volatile { return 0; }
void* _boost_type_erasure_deduce_assign(...) { return 0; }
};