This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-12-19


935. Missing overloads for character types for user-defined literals

Section: 12.6  [over.literal]     Status: CD2     Submitter: Alisdair Meredith     Date: 9 July, 2009

[Voted into WP at March, 2010 meeting.]

The list of overloads for user-defined literal operators given in 12.6 [over.literal] paragraph 3 should include signatures for char, wchar_t, char16_t, and char32_t.

Proposed resolution (November, 2009):

Change 12.6 [over.literal] paragraph 3 as follows:

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