Revert "cxx11.h: removed the 'evil workaround'"

This reverts commit 2cb9032d76.
This commit is contained in:
Daniel Marjamäki 2014-02-21 20:06:55 +01:00
parent 82a2279425
commit 910a90e4c1
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ public:
} }
private: private:
void operator&() const; // whose address can't be taken void operator&() const; // whose address can't be taken
} nullptr = {}; // and whose name is nullptr } cppcheck_nullptr_impl = {}; // and whose name is nullptr
// An evil workaround for the inability to disable -Wc++0x-compat using a #pragma.
// Once -std=c++0x is embraced, the above class can be renamed to nullptr and
// the define can be removed.
#define nullptr cppcheck_nullptr_impl
// Static assertions // Static assertions