Skip to content

Commit 6297abb

Browse files
committed
Remove BOOST_WORKAROUND in favour of explicit check for MSVC 8.
1 parent 788be20 commit 6297abb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asio/include/asio/buffer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,12 @@ class buffer_debug_check
511511

512512
~buffer_debug_check()
513513
{
514-
#if BOOST_WORKAROUND(ASIO_MSVC, == 1400)
514+
#if defined(ASIO_MSVC) && (ASIO_MSVC == 1400)
515515
// MSVC 8's string iterator checking may crash in a std::string::iterator
516516
// object's destructor when the iterator points to an already-destroyed
517517
// std::string object, unless the iterator is cleared first.
518518
iter_ = Iterator();
519-
#endif // BOOST_WORKAROUND(ASIO_MSVC, == 1400)
519+
#endif // defined(ASIO_MSVC) && (ASIO_MSVC == 1400)
520520
}
521521

522522
void operator()()

0 commit comments

Comments
 (0)