MISRA C++ rule 6.9.2 (The names of the standard signed integer types and standard unsigned integer types should not be used) defines two exceptions (shortened):
1. for type aliases
2. postfix operator, return type of main and argc of main.
Currently, there is no exception for user-defined literals.
However, the C++ standard defines as part of [over.literal] §16.5.8.3:
Is a exception for user-defined literals missing?
1. for type aliases
2. postfix operator, return type of main and argc of main.
Currently, there is no exception for user-defined literals.
However, the C++ standard defines as part of [over.literal] §16.5.8.3:
Code:
3 The declaration of a literal operator shall have a parameter-declaration-clause equivalent to one of the
following:
const char*
unsigned long long int
long double
char
wchar_t
char16_t
char32_t
const char*, std::size_t
const wchar_t*, std::size_t
const char16_t*, std::size_t
const char32_t*, std::size_t
If a parameter has a default argument (11.3.6), the program is ill-formed.
Is a exception for user-defined literals missing?