Ticket #8959: config.hpp.patch

File config.hpp.patch, 856 bytes (added by smueller@…, 9 years ago)

MSVC 12 detection to define BOOST_ASIO_HAS_MOVE

  • E:/lib/boost/1.54/boost/asio/detail/config.

    old new  
    9595#    if defined(__GXX_EXPERIMENTAL_CXX0X__)
    9696#     define BOOST_ASIO_HAS_MOVE 1
    9797#    endif // defined(__GXX_EXPERIMENTAL_CXX0X__)
    9898#   endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5)) || (__GNUC__ > 4)
    9999#  endif // defined(__GNUC__)
     100#  if defined (BOOST_ASIO_MSVC)
     101#   if (BOOST_ASIO_MSVC >= 12)
     102#    define BOOST_ASIO_HAS_MOVE 1
     103#   endif // (BOOST_ASIO_MSVC >= 12)
     104#  endif // defined (BOOST_ASIO_MSVC)
    100105# endif // !defined(BOOST_ASIO_DISABLE_MOVE)
    101106#endif // !defined(BOOST_ASIO_HAS_MOVE)
    102107
    103108// If BOOST_ASIO_MOVE_CAST isn't defined, and move support is available, define
    104109// BOOST_ASIO_MOVE_ARG and BOOST_ASIO_MOVE_CAST to take advantage of rvalue