jbcoe / jbcoe/cc-protocol

Consider function templates as conformance candidates

Open
#393 0 comments 0 reactions 0 assignees View on GitHub
design
Dominant language
C++
Stars
11
Forks
4
Avg merge
16h 39m
Merged PRs (30d)
131

Description

From [Dooez](https://github.com/Dooez)
[Timofey Dovgal](https://github.com/Dooez)

If you decide on explicit signature requirement as part of conformance rule, then I would suggest allowing templates in case an exact signature match can be instantiated.
This can be checked and used via member function pointer conversion from template. gcc 16.1 ICEs, but gcc trunk works
Ret (T::* ptr)(Args...) = &template [:member_function_template_reflection:];
https://godbolt.org/z/qWMr75cbb

Contributor guide

Open the contributing guide

Research direction

Start with the conformance rule's explicit signature requirement and the member function pointer conversion example in the issue, then compare the linked Godbolt behavior on GCC 16.1 and GCC trunk. Define whether an exact signature match can instantiate a member function template and document the resulting conformance behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.