diff --git a/include/boost/hana/detail/as_container_element.hpp b/include/boost/hana/detail/as_container_element.hpp index 0ee8a30e08..e493414112 100644 --- a/include/boost/hana/detail/as_container_element.hpp +++ b/include/boost/hana/detail/as_container_element.hpp @@ -37,6 +37,13 @@ Distributed under the Boost Software License, Version 1.0. _GLIBCXX_END_NAMESPACE_VERSION } +#elif defined(BOOST_HANA_CONFIG_LIBMSVCCXX) + + namespace std { + template + class reference_wrapper; + } + #else # error "Hana must be taught how to forward declare std::reference_wrapper for your standard library"