From 135e598bc4ffc63001d84f93764fddee234f1da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 12 Nov 2016 23:54:22 +0100 Subject: [PATCH] Avoid reference to null errors in sanitizers --- include/boost/move/make_unique.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/move/make_unique.hpp b/include/boost/move/make_unique.hpp index bb59ab6..ef106db 100644 --- a/include/boost/move/make_unique.hpp +++ b/include/boost/move/make_unique.hpp @@ -75,7 +75,8 @@ struct nothrow_holder }; template -std::nothrow_t *nothrow_holder::pnothrow; +std::nothrow_t *nothrow_holder::pnothrow = + reinterpret_cast(0x1234); //Avoid reference to null errors in sanitizers } //namespace move_upmu { } //namespace boost{