diff options
| author | Martin Hořeňovský | 2017-05-03 00:29:36 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-05-03 00:29:36 +0200 |
| commit | c5c3d368a2ef3c22467e708108b2bdbcae0fd71e (patch) | |
| tree | b0550ebc05796bab0845647bee89bb32a418acd6 /include | |
| parent | 33ed1773f40b406dbf3b7201bf52694bd86b1503 (diff) | |
| download | catch3-c5c3d368a2ef3c22467e708108b2bdbcae0fd71e.tar.gz | |
Added std:: qualification to nullptr_t
Apparently Clang doesn't like it unqualfied :smile:
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_tostring.h | 2 | ||||
| -rw-r--r-- | include/internal/catch_tostring.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_tostring.h b/include/internal/catch_tostring.h index 02eb0d6f..6a20f9ef 100644 --- a/include/internal/catch_tostring.h +++ b/include/internal/catch_tostring.h @@ -180,7 +180,7 @@ namespace Catch { }; template<> - struct StringMaker<nullptr_t> { + struct StringMaker<std::nullptr_t> { std::string operator()(std::nullptr_t); }; diff --git a/include/internal/catch_tostring.hpp b/include/internal/catch_tostring.hpp index 8fc3c89e..06046095 100644 --- a/include/internal/catch_tostring.hpp +++ b/include/internal/catch_tostring.hpp @@ -197,7 +197,7 @@ std::string StringMaker<unsigned char>::operator()(unsigned char c) { return ::Catch::Detail::stringify(static_cast<char>(c)); } -std::string StringMaker<nullptr_t>::operator()(std::nullptr_t) { +std::string StringMaker<std::nullptr_t>::operator()(std::nullptr_t) { return "nullptr"; } |