diff --git a/include/boost/lexical_cast.hpp b/include/boost/lexical_cast.hpp index cfb98cf..1fd0b95 100644 --- a/include/boost/lexical_cast.hpp +++ b/include/boost/lexical_cast.hpp @@ -151,7 +151,7 @@ namespace boost #include #include -#if !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#ifndef BOOST_NO_CXX11_HDR_ARRAY #include #endif @@ -294,7 +294,7 @@ namespace boost { boost::detail::deduce_character_type_later< boost::array< const Char, N > > > {}; -#if !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#ifndef BOOST_NO_CXX11_HDR_ARRAY template < typename Char, std::size_t N > struct stream_char_common< std::array >: public boost::mpl::if_c< boost::detail::is_char_or_wchar< Char >::value, @@ -308,7 +308,7 @@ namespace boost { Char, boost::detail::deduce_character_type_later< std::array< const Char, N > > > {}; -#endif // !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#endif #if !defined(BOOST_LCAST_NO_WCHAR_T) && defined(BOOST_NO_INTRINSIC_WCHAR_T) template <> @@ -1768,7 +1768,7 @@ namespace boost { bool operator<<(boost::array const& input) BOOST_NOEXCEPT { return ((*this) << reinterpret_cast const& >(input)); } -#if !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#ifndef BOOST_NO_CXX11_HDR_ARRAY template bool operator<<(std::array const& input) BOOST_NOEXCEPT { return shl_char_array_limited(input.begin(), N); } @@ -1792,7 +1792,7 @@ namespace boost { template bool operator<<(std::array const& input) BOOST_NOEXCEPT { return ((*this) << reinterpret_cast const& >(input)); } -#endif // !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#endif template bool operator<<(const InStreamable& input) { return shl_input_streamable(input); } @@ -2009,7 +2009,7 @@ namespace boost { return ((*this) >> reinterpret_cast& >(output)); } -#if !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#ifndef BOOST_NO_CXX11_HDR_ARRAY template bool operator>>(std::array& output) BOOST_NOEXCEPT { @@ -2023,11 +2023,11 @@ namespace boost { } template - bool operator>>(std::array& in) + bool operator>>(std::array& output) { return ((*this) >> reinterpret_cast& >(output)); } -#endif // !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#endif /* diff --git a/test/lexical_cast_arrays_test.cpp b/test/lexical_cast_arrays_test.cpp index 2ed009e..f1ef3d9 100644 --- a/test/lexical_cast_arrays_test.cpp +++ b/test/lexical_cast_arrays_test.cpp @@ -256,7 +256,7 @@ void testing_boost_array_output_conversion() void testing_std_array_output_conversion() { -#if !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#ifndef BOOST_NO_CXX11_HDR_ARRAY testing_template_array_output_on_char_value(); testing_template_array_output_on_spec_value(100); testing_template_array_output_on_spec_value(static_cast(100)); @@ -358,7 +358,7 @@ void testing_boost_array_input_conversion() void testing_std_array_input_conversion() { -#if !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#ifndef BOOST_NO_CXX11_HDR_ARRAY testing_generic_array_input_conversion(); #endif diff --git a/test/lexical_cast_stream_traits_test.cpp b/test/lexical_cast_stream_traits_test.cpp index a005d7f..ac7acbe 100644 --- a/test/lexical_cast_stream_traits_test.cpp +++ b/test/lexical_cast_stream_traits_test.cpp @@ -131,7 +131,7 @@ void test_metafunctions() test_optimized_types_to_string_const >(); test_optimized_types_to_string_const >(); -#if !defined(BOOST_NO_CXX11_HDR_ARRAY) && defined(BOOST_HAS_TR1_ARRAY) +#ifndef BOOST_NO_CXX11_HDR_ARRAY test_optimized_types_to_string >(); test_optimized_types_to_string >(); test_optimized_types_to_string >();