dxx-rebirth/common/include/compiler-addressof.h

18 lines
513 B
C
Raw Normal View History

2014-06-01 17:55:23 +00:00
/*
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
2014-06-01 17:55:23 +00:00
* It is copyright by its individual contributors, as recorded in the
* project's Git history. See COPYING.txt at the top level for license
* terms and a link to the Git history.
*/
2014-01-12 23:00:43 +00:00
#pragma once
#if defined(DXX_HAVE_CXX11_ADDRESSOF)
#include <memory>
2014-01-12 23:00:43 +00:00
using std::addressof;
#elif defined(DXX_HAVE_BOOST_ADDRESSOF)
#include <boost/utility.hpp>
using boost::addressof;
#else
#error "No addressof() implementation found."
#endif