Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_xmlwriter.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-02-02 11:03:48 +0100
committerMartin Hořeňovský2020-02-02 12:59:19 +0100
commit66fe591477caa2f6b592e4318f5fd6020664cd29 (patch)
tree7dc32d58423686c0b50efce06ceb82f53d1d20e0 /src/catch2/catch_xmlwriter.cpp
parentea6db670632204bace889f646ca08bfa58bddeab (diff)
downloadcatch3-66fe591477caa2f6b592e4318f5fd6020664cd29.tar.gz
Replace C++11 use of ::type with the _t suffix for std traits
Diffstat (limited to 'src/catch2/catch_xmlwriter.cpp')
-rw-r--r--src/catch2/catch_xmlwriter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/catch2/catch_xmlwriter.cpp b/src/catch2/catch_xmlwriter.cpp
index 3b96035b..a39d4a1b 100644
--- a/src/catch2/catch_xmlwriter.cpp
+++ b/src/catch2/catch_xmlwriter.cpp
@@ -53,26 +53,26 @@ namespace {
}
bool shouldNewline(XmlFormatting fmt) {
- return !!(static_cast<std::underlying_type<XmlFormatting>::type>(fmt & XmlFormatting::Newline));
+ return !!(static_cast<std::underlying_type_t<XmlFormatting>>(fmt & XmlFormatting::Newline));
}
bool shouldIndent(XmlFormatting fmt) {
- return !!(static_cast<std::underlying_type<XmlFormatting>::type>(fmt & XmlFormatting::Indent));
+ return !!(static_cast<std::underlying_type_t<XmlFormatting>>(fmt & XmlFormatting::Indent));
}
} // anonymous namespace
XmlFormatting operator | (XmlFormatting lhs, XmlFormatting rhs) {
return static_cast<XmlFormatting>(
- static_cast<std::underlying_type<XmlFormatting>::type>(lhs) |
- static_cast<std::underlying_type<XmlFormatting>::type>(rhs)
+ static_cast<std::underlying_type_t<XmlFormatting>>(lhs) |
+ static_cast<std::underlying_type_t<XmlFormatting>>(rhs)
);
}
XmlFormatting operator & (XmlFormatting lhs, XmlFormatting rhs) {
return static_cast<XmlFormatting>(
- static_cast<std::underlying_type<XmlFormatting>::type>(lhs) &
- static_cast<std::underlying_type<XmlFormatting>::type>(rhs)
+ static_cast<std::underlying_type_t<XmlFormatting>>(lhs) &
+ static_cast<std::underlying_type_t<XmlFormatting>>(rhs)
);
}