Merge pull request #166 from Kojoley/cwg-defect-945

vector: Fix for compilers not compatible with CWG defect 945
This commit is contained in:
Kohei Takahashi
2017-12-24 11:40:58 +09:00
committed by GitHub

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);
} }