Skip to content

Commit c24c81c

Browse files
MSVC workaround are disable for MSVC >= v145
1 parent 1a61e1f commit c24c81c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/cobalt/config.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define BOOST_COBALT_IO_DECL
3333
#endif
3434

35-
#if BOOST_MSVC
35+
#if defined(BOOST_MSVC) && (BOOST_MSVC < 1950)
3636
#define BOOST_COBALT_MSVC_NOINLINE BOOST_NOINLINE
3737
#else
3838
#define BOOST_COBALT_MSVC_NOINLINE
@@ -44,7 +44,7 @@
4444
# include <boost/asio/any_io_executor.hpp>
4545
#endif
4646

47-
#if BOOST_MSVC
47+
#if defined(BOOST_MSVC) && (BOOST_MSVC < 1950)
4848
// msvc doesn't correctly suspend for self-deletion, hence we must workaround here
4949
#define BOOST_COBALT_NO_SELF_DELETE 1
5050
#endif

0 commit comments

Comments
 (0)