diff --git a/include/boost/hana/core/to.hpp b/include/boost/hana/core/to.hpp index 7100ad5f5..7b46e01fb 100644 --- a/include/boost/hana/core/to.hpp +++ b/include/boost/hana/core/to.hpp @@ -49,8 +49,8 @@ namespace boost { namespace hana { }; template - struct maybe_static_cast(std::declval()) + struct maybe_static_cast()(std::declval()) )> { template static constexpr To apply(X&& x) @@ -63,6 +63,13 @@ namespace boost { namespace hana { : convert_detail::maybe_static_cast { }; + template + struct to_impl::value>> { + template + static constexpr X apply(X&&) + { return; } + }; + template struct to_impl : embedding<> { template