1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-11 10:02:27 +01:00

Allow adding const/volatile types to the formatter (#14908)

This commit is contained in:
Hielke Morsink
2021-06-20 20:18:54 +02:00
committed by GitHub
parent 9383fcef41
commit 005e6826b4

View File

@@ -77,16 +77,16 @@ public:
// clang-format off
static_assert(
std::is_same_v<TSpecified, char*> ||
std::is_same_v<TSpecified, const char*> ||
std::is_same_v<TSpecified, int16_t> ||
std::is_same_v<TSpecified, int32_t> ||
std::is_same_v<TSpecified, money32> ||
std::is_same_v<TSpecified, rct_string_id> ||
std::is_same_v<TSpecified, uint16_t> ||
std::is_same_v<TSpecified, uint32_t> ||
std::is_same_v<TSpecified, utf8*> ||
std::is_same_v<TSpecified, const utf8*>
std::is_same_v<typename std::remove_cv<TSpecified>::type, char*> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, const char*> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, int16_t> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, int32_t> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, money32> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, rct_string_id> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, uint16_t> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, uint32_t> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, utf8*> ||
std::is_same_v<typename std::remove_cv<TSpecified>::type, const utf8*>
);
// clang-format on