Skip to content

Commit

Permalink
Merge pull request #166 from Kojoley/cwg-defect-945
Browse files Browse the repository at this point in the history
vector: Fix for compilers not compatible with CWG defect 945
  • Loading branch information
Flast committed Dec 24, 2017
2 parents dc47261 + 39fb05e commit 806b621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/fusion/container/vector/vector.hpp
Expand Up @@ -247,14 +247,14 @@ namespace boost { namespace fusion

template <typename J>
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);
}

template <typename J>
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);
}
Expand Down

0 comments on commit 806b621

Please sign in to comment.