forked from Alepha/Alepha
Modernize (partially) the comparisons header's module namespaces.
This commit is contained in:
@ -13,22 +13,16 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <Alepha/Meta/overload.h>
|
||||
|
||||
|
||||
namespace Alepha::Hydrogen
|
||||
namespace Alepha::Hydrogen ::detail
|
||||
{
|
||||
inline namespace exports { inline namespace comparisons_m {} }
|
||||
|
||||
namespace detail::comparisons_m
|
||||
namespace comparisons_m::inline exports
|
||||
{
|
||||
inline namespace exports {}
|
||||
|
||||
using namespace Meta::exports::template_overload;
|
||||
|
||||
struct comparable {};
|
||||
}
|
||||
|
||||
namespace exports
|
||||
{
|
||||
using detail::comparisons_m::comparable;
|
||||
}
|
||||
namespace comparisons_m
|
||||
{
|
||||
using namespace Meta::exports::template_overload;
|
||||
|
||||
template< typename T >
|
||||
constexpr bool has_comparable_capability_v= HasCapability< std::decay_t< T >, comparable >;
|
||||
@ -431,9 +425,9 @@ namespace Alepha::Hydrogen
|
||||
return ne( lhs, rhs );
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::comparisons_m
|
||||
{
|
||||
using namespace detail::comparisons_m::exports;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::inline exports::inline comparisons_m
|
||||
{
|
||||
using namespace detail::comparisons_m::exports;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user