Removed type_traits include, added more tests

[SVN r27712]
This commit is contained in:
Peter Dimov
2014-06-01 01:15:37 +03:00
parent c52d81a792
commit 6de0794761
2 changed files with 80 additions and 31 deletions
+8 -4
View File
@@ -13,9 +13,6 @@
# include <boost/config.hpp>
# include <boost/detail/workaround.hpp>
# if BOOST_WORKAROUND(BOOST_MSVC, == 1300)
# include <boost/type_traits/add_pointer.hpp>
# endif
namespace boost {
@@ -23,7 +20,14 @@ namespace boost {
// VC7 strips const from nested classes unless we add indirection here
# if BOOST_WORKAROUND(BOOST_MSVC, == 1300)
template <typename T> typename add_pointer<T>::type
template<class T> struct _addp
{
typedef T * type;
};
template <typename T> typename _addp<T>::type
# else
template <typename T> T*
# endif