Minor cleanup for utils.hpp

This commit is contained in:
Pavel Kirienko
2014-02-28 15:22:36 +04:00
parent 161c3fdc7d
commit 1f7054b6ca
+9 -3
View File
@@ -27,7 +27,9 @@ struct StaticAssert<true>
*/
template<long N> struct ShowIntegerAsError;
/**
* Prevents copying when inherited
*/
class Noncopyable
{
Noncopyable(const Noncopyable&);
@@ -36,7 +38,9 @@ protected:
Noncopyable() { }
};
/**
* Compile time conditions
*/
template<bool B, typename T = void>
struct EnableIf { };
@@ -63,7 +67,9 @@ struct StaticIf<false, TrueType, FalseType>
typedef FalseType Result;
};
/**
* Value types
*/
template<bool> struct BooleanType { };
typedef BooleanType<true> TrueType;
typedef BooleanType<false> FalseType;