forked from boostorg/type_traits
Inline namespace test version.
This commit is contained in:
@ -10,10 +10,12 @@
|
||||
#ifndef BOOST_TT_ADD_CONST_HPP_INCLUDED
|
||||
#define BOOST_TT_ADD_CONST_HPP_INCLUDED
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/type_traits/detail/config.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
BOOST_TT_INLINE_NS
|
||||
|
||||
// * convert a type T to const type - add_const<T>
|
||||
// this is not required since the result is always
|
||||
// the same as "T const", but it does suppress warnings
|
||||
@ -41,6 +43,7 @@ namespace boost {
|
||||
typedef T& type;
|
||||
};
|
||||
|
||||
BOOST_TT_INLINE_NS_END
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_TT_ADD_CONST_HPP_INCLUDED
|
||||
|
@ -12,7 +12,7 @@
|
||||
#ifndef BOOST_CONFIG_HPP
|
||||
#include <boost/config.hpp>
|
||||
#endif
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
//
|
||||
@ -67,6 +67,18 @@
|
||||
#define BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION(x)
|
||||
#define BOOST_TT_BROKEN_COMPILER_SPEC(x)
|
||||
|
||||
#ifdef BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||
|
||||
#define BOOST_TT_INLINE_NS
|
||||
#define BOOST_TT_INLINE_NS_END
|
||||
|
||||
#else
|
||||
|
||||
#define BOOST_TT_INLINE_NS inline namespace BOOST_JOIN(tt, BOOST_VERSION) {
|
||||
#define BOOST_TT_INLINE_NS_END }
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_TT_CONFIG_HPP_INCLUDED
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user