diff --git a/include/boost/fusion/container/vector/vector.hpp b/include/boost/fusion/container/vector/vector.hpp index 1d6c5f1f..4993e2eb 100644 --- a/include/boost/fusion/container/vector/vector.hpp +++ b/include/boost/fusion/container/vector/vector.hpp @@ -247,14 +247,14 @@ namespace boost { namespace fusion template BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED - auto at_impl(J) -> decltype(at_detail(this)) + auto at_impl(J) -> decltype(at_detail(&std::declval())) { return at_detail(this); } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - auto at_impl(J) const -> decltype(at_detail(this)) + auto at_impl(J) const -> decltype(at_detail(&std::declval())) { return at_detail(this); }