summaryrefslogtreecommitdiff
path: root/boost/move/detail/workaround.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/move/detail/workaround.hpp')
-rw-r--r--boost/move/detail/workaround.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/boost/move/detail/workaround.hpp b/boost/move/detail/workaround.hpp
index 67ba161345..b3f81b117f 100644
--- a/boost/move/detail/workaround.hpp
+++ b/boost/move/detail/workaround.hpp
@@ -23,6 +23,16 @@
#define BOOST_MOVE_PERFECT_FORWARDING
#endif
+#if defined(__has_feature)
+ #define BOOST_MOVE_HAS_FEATURE __has_feature
+#else
+ #define BOOST_MOVE_HAS_FEATURE(x) 0
+#endif
+
+#if BOOST_MOVE_HAS_FEATURE(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
+ #define BOOST_MOVE_ADDRESS_SANITIZER_ON
+#endif
+
//Macros for documentation purposes. For code, expands to the argument
#define BOOST_MOVE_IMPDEF(TYPE) TYPE
#define BOOST_MOVE_SEEDOC(TYPE) TYPE