You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type of a customization point object T shall satisfy Invocable<const T, Args...> (7.6.2) when the
types of Args... meet the requirements specified in that customization point object’s definition. Otherwise, T shall not have a function call operator that participates in overload resolution.
This requires constrvalueT to have such a function call operator, instead of constlvalueT as intended. The wording should require the call operator for lvalue T, ideally without forbidding the presence of equivalent call operators for rvalue (or non-const, or volatile, or ...) T`.
Proposed Resolution
Modify [customization.point.object]/4 as follows:
The type of a customization point object T shall satisfy
-Invocable<const T, Args...>+Invocable<const T&, Args...>
(22.6.2) when the types of Args... meet the requirements specified in that customization point
object’s definition.
-Otherwise,+When the types of Args... do not meet the customization point object’s requirements,
T shall not have a function call operator that participates in overload resolution.
The text was updated successfully, but these errors were encountered:
There seems to be another problem here: the type of an object includes its cv-qualification, if any, but for something like the Semiregular requirement (and this Invocable) presumably we want to remove the cv-qualification.
[customization.point.object]/4 states:
This requires
const
rvalueT
to have such a function call operator, instead ofconst
lvalueT
as intended. The wording should require the call operator for lvalueT
, ideally without forbidding the presence of equivalent call operators for rvalue (or non-const
, orvolatile, or ...)
T`.Proposed Resolution
Modify [customization.point.object]/4 as follows:
The text was updated successfully, but these errors were encountered: