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-31


2978. Deduction involving reference to similar types

Section: 13.10.3.2  [temp.deduct.call]     Status: open     Submitter: Brian Bi     Date: 2024-12-11

(From submission #651.)

Consider:

  #include <cstddef>

  template <std::size_t N>
  void f(const int* const (&)[N]);

  int main() {
    int* a[3];
    f(a);
  }

There is implementation divergence.

Possible resolution:

Change in 13.10.3.2 [temp.deduct.call] bullet 4.1 as follows: