1
0
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:
2022-10-17 22:50:33 -04:00
parent 72b316d0e2
commit 0a1ecce9ec

View File

@ -2,7 +2,20 @@ static_assert( __cplusplus > 201700, "C++17 Required" );
#pragma once
#ifndef ALEPHA_OVERRIDE_BOOST_NAMESPACE
namespace boost {}
#else
namespace ALEPHA_OVERRIDE_BOOST_NAMESPACE {}
#endif
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
}
}