forked from Alepha/Alepha
Permit user-specification of the real namespace of boost.
This way `Alepha` can be used in a binary-only library project which uses boost or a codebase which mangles boost.
This commit is contained in:
15
Alepha.h
15
Alepha.h
@ -2,7 +2,20 @@ static_assert( __cplusplus > 201700, "C++17 Required" );
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef ALEPHA_OVERRIDE_BOOST_NAMESPACE
|
||||||
|
namespace boost {}
|
||||||
|
#else
|
||||||
|
namespace ALEPHA_OVERRIDE_BOOST_NAMESPACE {}
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Alepha
|
namespace Alepha
|
||||||
{
|
{
|
||||||
inline namespace Hydrogen {}
|
inline namespace Hydrogen
|
||||||
|
{
|
||||||
|
#ifndef ALEPHA_OVERRIDE_BOOST_NAMESPACE
|
||||||
|
namespace boost_ns= ::boost;
|
||||||
|
#else
|
||||||
|
namespace boost_ns= ALEPHA_OVERRIDE_BOOST_NAMESPACE;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user