mirror of
https://github.com/boostorg/range.git
synced 2025-07-29 20:37:25 +02:00
Replace is_copy_constructible with is_abstract (for pre C++11)
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
#include <boost/iterator/iterator_categories.hpp>
|
||||
#include <boost/type_traits/add_const.hpp>
|
||||
#include <boost/type_traits/add_reference.hpp>
|
||||
#include <boost/type_traits/is_copy_constructible.hpp>
|
||||
#include <boost/type_traits/is_abstract.hpp>
|
||||
#include <boost/type_traits/is_reference.hpp>
|
||||
#include <boost/type_traits/remove_const.hpp>
|
||||
#include <boost/type_traits/remove_reference.hpp>
|
||||
@ -39,15 +39,15 @@ namespace boost
|
||||
struct reference_as_value_type_generator
|
||||
{
|
||||
typedef typename mpl::if_<
|
||||
typename is_copy_constructible<
|
||||
typename is_abstract<
|
||||
typename remove_const<
|
||||
typename remove_reference<T>::type
|
||||
>::type
|
||||
>::type,
|
||||
T,
|
||||
typename remove_const<
|
||||
typename remove_reference<T>::type
|
||||
>::type,
|
||||
T
|
||||
>::type
|
||||
>::type type;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user