vector: Fix for compilers not compatible with CWG defect 945

http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#945
This commit is contained in:
Nikita Kniazev
2017-12-23 18:17:04 +03:00
parent dc47261890
commit 39fb05e40f

View File

@ -247,14 +247,14 @@ namespace boost { namespace fusion
template <typename J> template <typename J>
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
auto at_impl(J) -> decltype(at_detail<J::value>(this)) auto at_impl(J) -> decltype(at_detail<J::value>(&std::declval<vector_data&>()))
{ {
return at_detail<J::value>(this); return at_detail<J::value>(this);
} }
template <typename J> template <typename J>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
auto at_impl(J) const -> decltype(at_detail<J::value>(this)) auto at_impl(J) const -> decltype(at_detail<J::value>(&std::declval<vector_data const&>()))
{ {
return at_detail<J::value>(this); return at_detail<J::value>(this);
} }