forked from boostorg/conversion
Remove usage of deprecated macros
[SVN r81551]
This commit is contained in:
@@ -112,7 +112,7 @@ namespace boost
|
|||||||
return *target;
|
return *target;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef BOOST_NO_NOEXCEPT
|
#ifndef BOOST_NO_CXX11_NOEXCEPT
|
||||||
virtual const char *what() const noexcept
|
virtual const char *what() const noexcept
|
||||||
#else
|
#else
|
||||||
virtual const char *what() const throw()
|
virtual const char *what() const throw()
|
||||||
@@ -122,7 +122,7 @@ namespace boost
|
|||||||
"source type value could not be interpreted as target";
|
"source type value could not be interpreted as target";
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef BOOST_NO_NOEXCEPT
|
#ifndef BOOST_NO_CXX11_NOEXCEPT
|
||||||
virtual ~bad_lexical_cast() BOOST_NOEXCEPT
|
virtual ~bad_lexical_cast() BOOST_NOEXCEPT
|
||||||
#else
|
#else
|
||||||
virtual ~bad_lexical_cast() throw()
|
virtual ~bad_lexical_cast() throw()
|
||||||
@@ -185,10 +185,10 @@ namespace boost {
|
|||||||
#ifndef BOOST_LCAST_NO_WCHAR_T
|
#ifndef BOOST_LCAST_NO_WCHAR_T
|
||||||
boost::is_same< T, wchar_t >::value,
|
boost::is_same< T, wchar_t >::value,
|
||||||
#endif
|
#endif
|
||||||
#ifndef BOOST_NO_CHAR16_T
|
#ifndef BOOST_NO_CXX11_CHAR16_T
|
||||||
boost::is_same< T, char16_t >::value,
|
boost::is_same< T, char16_t >::value,
|
||||||
#endif
|
#endif
|
||||||
#ifndef BOOST_NO_CHAR32_T
|
#ifndef BOOST_NO_CXX11_CHAR32_T
|
||||||
boost::is_same< T, char32_t >::value,
|
boost::is_same< T, char32_t >::value,
|
||||||
#endif
|
#endif
|
||||||
boost::is_same< T, unsigned char >::value,
|
boost::is_same< T, unsigned char >::value,
|
||||||
@@ -667,12 +667,12 @@ namespace boost {
|
|||||||
target_char_t, src_char_t
|
target_char_t, src_char_t
|
||||||
>::type char_type;
|
>::type char_type;
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CHAR16_T) && defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR16_T) && defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
BOOST_STATIC_ASSERT_MSG(( !boost::is_same<char16_t, src_char_t>::value
|
BOOST_STATIC_ASSERT_MSG(( !boost::is_same<char16_t, src_char_t>::value
|
||||||
&& !boost::is_same<char16_t, target_char_t>::value),
|
&& !boost::is_same<char16_t, target_char_t>::value),
|
||||||
"Your compiler does not have full support for char16_t" );
|
"Your compiler does not have full support for char16_t" );
|
||||||
#endif
|
#endif
|
||||||
#if !defined(BOOST_NO_CHAR32_T) && defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR32_T) && defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
BOOST_STATIC_ASSERT_MSG(( !boost::is_same<char32_t, src_char_t>::value
|
BOOST_STATIC_ASSERT_MSG(( !boost::is_same<char32_t, src_char_t>::value
|
||||||
&& !boost::is_same<char32_t, target_char_t>::value),
|
&& !boost::is_same<char32_t, target_char_t>::value),
|
||||||
"Your compiler does not have full support for char32_t" );
|
"Your compiler does not have full support for char32_t" );
|
||||||
@@ -738,7 +738,7 @@ namespace boost {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CHAR16_T) && !defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR16_T) && !defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
template<>
|
template<>
|
||||||
struct lcast_char_constants<char16_t>
|
struct lcast_char_constants<char16_t>
|
||||||
{
|
{
|
||||||
@@ -751,7 +751,7 @@ namespace boost {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CHAR32_T) && !defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR32_T) && !defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
template<>
|
template<>
|
||||||
struct lcast_char_constants<char32_t>
|
struct lcast_char_constants<char32_t>
|
||||||
{
|
{
|
||||||
@@ -1101,7 +1101,7 @@ namespace boost {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#if !defined(BOOST_NO_CHAR16_T) && !defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR16_T) && !defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
template <class T>
|
template <class T>
|
||||||
bool parse_inf_nan(const char16_t* begin, const char16_t* end, T& value) BOOST_NOEXCEPT
|
bool parse_inf_nan(const char16_t* begin, const char16_t* end, T& value) BOOST_NOEXCEPT
|
||||||
{
|
{
|
||||||
@@ -1117,7 +1117,7 @@ namespace boost {
|
|||||||
return put_inf_nan_impl(begin, end, value, u"nan", u"infinity");
|
return put_inf_nan_impl(begin, end, value, u"nan", u"infinity");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if !defined(BOOST_NO_CHAR32_T) && !defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR32_T) && !defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
template <class T>
|
template <class T>
|
||||||
bool parse_inf_nan(const char32_t* begin, const char32_t* end, T& value) BOOST_NOEXCEPT
|
bool parse_inf_nan(const char32_t* begin, const char32_t* end, T& value) BOOST_NOEXCEPT
|
||||||
{
|
{
|
||||||
@@ -1704,12 +1704,12 @@ namespace boost {
|
|||||||
bool operator<<(wchar_t ch) { return shl_char(ch); }
|
bool operator<<(wchar_t ch) { return shl_char(ch); }
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if !defined(BOOST_NO_CHAR16_T) && !defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR16_T) && !defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
bool operator<<(char16_t ch) { return shl_char(ch); }
|
bool operator<<(char16_t ch) { return shl_char(ch); }
|
||||||
bool operator<<(char16_t * str) { return shl_char_array(str); }
|
bool operator<<(char16_t * str) { return shl_char_array(str); }
|
||||||
bool operator<<(char16_t const * str) { return shl_char_array(str); }
|
bool operator<<(char16_t const * str) { return shl_char_array(str); }
|
||||||
#endif
|
#endif
|
||||||
#if !defined(BOOST_NO_CHAR32_T) && !defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR32_T) && !defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
bool operator<<(char32_t ch) { return shl_char(ch); }
|
bool operator<<(char32_t ch) { return shl_char(ch); }
|
||||||
bool operator<<(char32_t * str) { return shl_char_array(str); }
|
bool operator<<(char32_t * str) { return shl_char_array(str); }
|
||||||
bool operator<<(char32_t const * str) { return shl_char_array(str); }
|
bool operator<<(char32_t const * str) { return shl_char_array(str); }
|
||||||
@@ -1961,10 +1961,10 @@ namespace boost {
|
|||||||
#if !defined(BOOST_LCAST_NO_WCHAR_T) && !defined(BOOST_NO_INTRINSIC_WCHAR_T)
|
#if !defined(BOOST_LCAST_NO_WCHAR_T) && !defined(BOOST_NO_INTRINSIC_WCHAR_T)
|
||||||
bool operator>>(wchar_t& output) { return shr_xchar(output); }
|
bool operator>>(wchar_t& output) { return shr_xchar(output); }
|
||||||
#endif
|
#endif
|
||||||
#if !defined(BOOST_NO_CHAR16_T) && !defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR16_T) && !defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
bool operator>>(char16_t& output) { return shr_xchar(output); }
|
bool operator>>(char16_t& output) { return shr_xchar(output); }
|
||||||
#endif
|
#endif
|
||||||
#if !defined(BOOST_NO_CHAR32_T) && !defined(BOOST_NO_UNICODE_LITERALS)
|
#if !defined(BOOST_NO_CXX11_CHAR32_T) && !defined(BOOST_NO_CXX11_UNICODE_LITERALS)
|
||||||
bool operator>>(char32_t& output) { return shr_xchar(output); }
|
bool operator>>(char32_t& output) { return shr_xchar(output); }
|
||||||
#endif
|
#endif
|
||||||
template<class Alloc>
|
template<class Alloc>
|
||||||
|
Reference in New Issue
Block a user