From 77f5d7218da42db37b4fecc97f7c389a9e6b9cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 12 Nov 2016 23:55:03 +0100 Subject: [PATCH] Avoid reference to null errors in sanitizers --- include/boost/container/detail/pair.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/container/detail/pair.hpp b/include/boost/container/detail/pair.hpp index cad6f09..63d1dea 100644 --- a/include/boost/container/detail/pair.hpp +++ b/include/boost/container/detail/pair.hpp @@ -66,7 +66,8 @@ namespace container { }; template - ::std::piecewise_construct_t *std_piecewise_construct_holder::dummy; + ::std::piecewise_construct_t *std_piecewise_construct_holder::dummy = + reinterpret_cast< ::std::piecewise_construct_t *>(0x01234); //Avoid sanitizer errors on references to null pointers typedef const std::piecewise_construct_t & piecewise_construct_t;