dxx-rebirth/common/include/compiler-addressof.h
2014-06-01 19:55:23 +02:00

18 lines
513 B
C++

/*
* This file is part of the DXX-Rebirth project <http://www.dxx-rebirth.com/>.
* 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.
*/
#pragma once
#if defined(DXX_HAVE_CXX11_ADDRESSOF)
#include <utility>
using std::addressof;
#elif defined(DXX_HAVE_BOOST_ADDRESSOF)
#include <boost/utility.hpp>
using boost::addressof;
#else
#error "No addressof() implementation found."
#endif