mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 07:13:07 +01:00
Allow adding const/volatile types to the formatter (#14908)
This commit is contained in:
@@ -77,16 +77,16 @@ public:
|
|||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static_assert(
|
static_assert(
|
||||||
std::is_same_v<TSpecified, char*> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, char*> ||
|
||||||
std::is_same_v<TSpecified, const char*> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, const char*> ||
|
||||||
std::is_same_v<TSpecified, int16_t> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, int16_t> ||
|
||||||
std::is_same_v<TSpecified, int32_t> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, int32_t> ||
|
||||||
std::is_same_v<TSpecified, money32> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, money32> ||
|
||||||
std::is_same_v<TSpecified, rct_string_id> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, rct_string_id> ||
|
||||||
std::is_same_v<TSpecified, uint16_t> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, uint16_t> ||
|
||||||
std::is_same_v<TSpecified, uint32_t> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, uint32_t> ||
|
||||||
std::is_same_v<TSpecified, utf8*> ||
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, utf8*> ||
|
||||||
std::is_same_v<TSpecified, const utf8*>
|
std::is_same_v<typename std::remove_cv<TSpecified>::type, const utf8*>
|
||||||
);
|
);
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user