1 /* 2 Copyright 2017 Glen Joseph Fernandes 3 (glenjofe@gmail.com) 4 5 Distributed under the Boost Software License, Version 1.0. 6 (http://www.boost.org/LICENSE_1_0.txt) 7 */ 8 9 #include <boost/core/addressof.hpp> 10 #include <boost/static_assert.hpp> 11 12 #if !defined(BOOST_CORE_NO_CONSTEXPR_ADDRESSOF) 13 struct Type { }; 14 15 static int v1 = 0; 16 static Type v2 = { }; 17 18 BOOST_STATIC_ASSERT(boost::addressof(v1) == &v1); 19 BOOST_STATIC_ASSERT(boost::addressof(v2) == &v2); 20 #endif 21