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
After the application of CWG2369, satisfaction for a trailing requires-clause is checked prior to substitution into the function type. [temp.deduct.general]/5:
[...] If the function template has associated constraints ([temp.constr.decl]), those constraints are checked for satisfaction ([temp.constr.constr]). [...] If type deduction has not yet failed, then all uses of template parameters in the function type are replaced with the corresponding deduced or default argument values.
But the associated constraints can refer to the parameters:
Among implementations that implement CWG2369, there seems to be no implementation variance: function parameters should be instantiated when they are needed by a satisfaction check of an atomic constraint or (recursively) by another function parameter.