2014-06-01 17:55:23 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
2014-01-12 23:00:43 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if defined(DXX_HAVE_CXX11_ADDRESSOF)
|
2014-11-30 17:04:49 +00:00
|
|
|
#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
|