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

2024-04-18


1252. Overloading member function templates based on dependent return type

Section: _N4868_.12.2  [over.load]     Status: CD6     Submitter: Nikolay Ivchenkov     Date: 2011-03-06

[Accepted at the November, 2020 meeting as part of paper P1787R6 and moved to DR at the February, 2021 meeting.]

The Standard does not allow overloading of member functions that differ only in their return type (cf enable_if).