12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef STRING_LITERAL_DWA2002629_HPP
- # define STRING_LITERAL_DWA2002629_HPP
- # include <cstddef>
- # include <boost/type.hpp>
- # include <boost/python/detail/type_traits.hpp>
- # include <boost/mpl/bool.hpp>
- # include <boost/detail/workaround.hpp>
- namespace boost { namespace python { namespace detail {
- template <class T>
- struct is_string_literal : mpl::false_
- {
- };
- # if !defined(__MWERKS__) || __MWERKS__ > 0x2407
- template <std::size_t n>
- struct is_string_literal<char const[n]> : mpl::true_
- {
- };
- # if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590040)) \
- || (defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730)
- template <>
- struct is_string_literal<char* const> : mpl::true_
- {
- };
- # endif
- # else
- template <class T, std::size_t n>
- struct is_string_literal<T[n]>
- : is_same<T, char const>
- {
- };
- # endif
- }}}
- #endif
|