Skip to content

Commit

Permalink
Use boost::declval, as g++ 4.4 has decltype but no std::declval
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Sep 29, 2018
1 parent af9f65e commit 364f755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/range/adaptor/ref_unwrapped.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <boost/range/adaptor/transformed.hpp>
#include <boost/range/reference.hpp>
#include <boost/range/concepts.hpp>

#include <boost/type_traits/declval.hpp>
#include <utility>

#if !defined(BOOST_NO_CXX11_DECLTYPE)
Expand All @@ -32,7 +32,7 @@ namespace boost
typedef BOOST_DEDUCED_TYPENAME
range_reference<SinglePassRange>::type argument_type;

typedef decltype(std::declval<argument_type>().get() ) result_type;
typedef decltype( boost::declval<argument_type>().get() ) result_type;

result_type operator()( argument_type &&r ) const
{
Expand Down

0 comments on commit 364f755

Please sign in to comment.