Core/Flags: Rename DetailFlagOperators to FlagsOperators

In case a user would need to use it
This commit is contained in:
Lynix 2017-06-20 06:50:37 +02:00
parent 47a22c2785
commit dfc441c2fc
1 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ namespace Nz
}; };
// Little hack to have them in both Nz and global scope // Little hack to have them in both Nz and global scope
namespace DetailFlagOperators namespace FlagsOperators
{ {
template<typename E> constexpr std::enable_if_t<EnumAsFlags<E>::value, Flags<E>> operator~(E lhs); template<typename E> constexpr std::enable_if_t<EnumAsFlags<E>::value, Flags<E>> operator~(E lhs);
template<typename E> constexpr std::enable_if_t<EnumAsFlags<E>::value, Flags<E>> operator|(E lhs, E rhs); template<typename E> constexpr std::enable_if_t<EnumAsFlags<E>::value, Flags<E>> operator|(E lhs, E rhs);
@ -64,10 +64,10 @@ namespace Nz
template<typename E> constexpr std::enable_if_t<EnumAsFlags<E>::value, Flags<E>> operator^(E lhs, E rhs); template<typename E> constexpr std::enable_if_t<EnumAsFlags<E>::value, Flags<E>> operator^(E lhs, E rhs);
} }
using namespace DetailFlagOperators; using namespace FlagsOperators;
} }
using namespace Nz::DetailFlagOperators; using namespace Nz::FlagsOperators;
#include <Nazara/Core/Flags.inl> #include <Nazara/Core/Flags.inl>