Rename None to Null because of conflict with an xlib.h macro

This commit is contained in:
vitaut
2015-07-07 07:05:17 -07:00
parent 7859f81233
commit c669cbedf8
3 changed files with 12 additions and 9 deletions

View File

@@ -833,20 +833,20 @@ template <typename Char>
struct NamedArg;
template <typename T = void>
struct None {};
struct Null {};
// A helper class template to enable or disable overloads taking wide
// characters and strings in MakeValue.
template <typename T, typename Char>
struct WCharHelper {
typedef None<T> Supported;
typedef Null<T> Supported;
typedef T Unsupported;
};
template <typename T>
struct WCharHelper<T, wchar_t> {
typedef T Supported;
typedef None<T> Unsupported;
typedef Null<T> Unsupported;
};
template <typename T>