Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f15b8c7

Browse files
committed
The __cplusplus macro does not work properly prior to MSVC2017 15.7 Preview 3: https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
1 parent 2a1e581 commit f15b8c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/behaviortree_cpp_v3/utils/make_unique.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <memory>
44

5-
#if defined(_MSC_VER) && __cplusplus == 201103L
5+
#if defined(_MSC_VER) && _MSC_VER >= 1900 // MSVC 2015 or newer.
66
# define MAKE_UNIQUE_DEFINED 1
77
#endif
88

0 commit comments

Comments
 (0)