Skip to content

[func.wrap.ref.ctor] Restore class T in constant_wrapper constructor head#9

Open
abhinavagarwal07 wants to merge 1 commit into
mainfrom
fix-funcref-constant-wrapper-ctor-class-t
Open

[func.wrap.ref.ctor] Restore class T in constant_wrapper constructor head#9
abhinavagarwal07 wants to merge 1 commit into
mainfrom
fix-funcref-constant-wrapper-ctor-class-t

Conversation

@abhinavagarwal07

@abhinavagarwal07 abhinavagarwal07 commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Restore the missing class T template parameter in the out-of-line function_ref constructor declaration so it matches the synopsis.

…head

The out-of-line declaration of the function_ref constructor taking a
constant_wrapper<c, F> and a cv T* object pointer is headed with only
template<auto c, class F>, but its function parameter (cv T* obj) and
Constraints element (is-invocable-using<const F&, cv T*>) both name T,
which is then undeclared. The class synopsis in [func.wrap.ref.class]
already declares it as template<auto c, class F, class T>. Restore
class T to the out-of-line head so it matches the synopsis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant