dxx-rebirth/common/include/compiler-addressof.h
Kp e7c0c639aa Include <memory>, not <utility> for std::addressof
Including utility works on Linux, but apparently fails on OS X 10.10.
Switch to <memory>, which also works on Linux, and which btb reports
works on OS X.

Reported by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/12
Fixed by btb: 2f4b2f031c
2014-11-30 17:04:49 +00:00

18 lines
512 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 <memory>
using std::addressof;
#elif defined(DXX_HAVE_BOOST_ADDRESSOF)
#include <boost/utility.hpp>
using boost::addressof;
#else
#error "No addressof() implementation found."
#endif