forked from boostorg/type_traits
Bring decay into line with std::decay.
See https://svn.boost.org/trac/boost/ticket/7760.
This commit is contained in:
1 parent
ab62bb1c14
commit
d3ac8b95c4
153 files changed
+276
-261
No files matched your search
@@ -14,6 +14,7 @@
|
||||
#include <boost/type_traits/remove_bounds.hpp>
|
||||
#include <boost/type_traits/add_pointer.hpp>
|
||||
#include <boost/type_traits/remove_reference.hpp>
|
||||
#include <boost/type_traits/remove_cv.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace boost
|
||||
namespace detail
|
||||
{
|
||||
|
||||
template <class T, bool Array, bool Function> struct decay_imp { typedef T type; };
|
||||
template <class T, bool Array, bool Function> struct decay_imp { typedef typename remove_cv<T>::type type; };
|
||||
template <class T> struct decay_imp<T, true, false> { typedef typename remove_bounds<T>::type* type; };
|
||||
template <class T> struct decay_imp<T, false, true> { typedef T* type; };
|
||||
|
||||
|
||||
Reference in new issue
Block a user