From d3ea3468dee560d790658799d53bbb5af817746c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 20 Nov 2016 18:17:08 +0100 Subject: [PATCH] Since null-reference warning with sanitizers --- include/boost/container/uses_allocator_fwd.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/container/uses_allocator_fwd.hpp b/include/boost/container/uses_allocator_fwd.hpp index d8fe67f..42a5b90 100644 --- a/include/boost/container/uses_allocator_fwd.hpp +++ b/include/boost/container/uses_allocator_fwd.hpp @@ -30,8 +30,8 @@ namespace container { static ::std::allocator_arg_t *dummy; }; - template - ::std::allocator_arg_t *std_allocator_arg_holder::dummy; + template //Silence null-reference compiler warnings + ::std::allocator_arg_t *std_allocator_arg_holder::dummy = reinterpret_cast< ::std::allocator_arg_t * >(0x1234); typedef const std::allocator_arg_t & allocator_arg_t;