mirror of
https://github.com/boostorg/range.git
synced 2025-07-29 20:37:25 +02:00
ticket 9072 iterator_range accept reference to function type.
This commit is contained in:
@ -7,6 +7,10 @@
|
||||
//
|
||||
// For more information, see http://www.boost.org/libs/range/
|
||||
//
|
||||
// Credits:
|
||||
// 'michel' reported Trac 9072 which included a patch for allowing references
|
||||
// to function types.
|
||||
//
|
||||
#ifndef BOOST_RANGE_ITERATOR_RANGE_CORE_HPP_INCLUDED
|
||||
#define BOOST_RANGE_ITERATOR_RANGE_CORE_HPP_INCLUDED
|
||||
|
||||
@ -25,6 +29,7 @@
|
||||
#include <boost/type_traits/is_abstract.hpp>
|
||||
#include <boost/type_traits/is_array.hpp>
|
||||
#include <boost/type_traits/is_convertible.hpp>
|
||||
#include <boost/type_traits/is_function.hpp>
|
||||
#include <boost/type_traits/is_pointer.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <boost/range/functions.hpp>
|
||||
@ -300,6 +305,9 @@ public:
|
||||
>,
|
||||
boost::is_array<
|
||||
BOOST_DEDUCED_TYPENAME base_type::value_type
|
||||
>,
|
||||
boost::is_function<
|
||||
BOOST_DEDUCED_TYPENAME base_type::value_type
|
||||
>
|
||||
>,
|
||||
BOOST_DEDUCED_TYPENAME base_type::reference,
|
||||
|
Reference in New Issue
Block a user