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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

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