diff --git a/include/boost/lexical_cast.hpp b/include/boost/lexical_cast.hpp index cf1d700..50af834 100644 --- a/include/boost/lexical_cast.hpp +++ b/include/boost/lexical_cast.hpp @@ -2096,7 +2096,8 @@ namespace boost { template struct copy_converter_impl { -#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES +// MSVC fail to forward an array. This error is reported to MSVC's developer. +#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_MSVC) template static inline bool try_convert(T&& arg, Target& result) { result = static_cast(arg); // eqaul to `result = std::forward(arg);` @@ -2250,7 +2251,8 @@ namespace boost { namespace conversion { namespace detail { -#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES +// MSVC fail to forward an array. This error is reported to MSVC's developer. +#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_MSVC) template inline bool try_lexical_convert(Source&& arg, Target& result) {