cplusplus / cplusplus/draft

[temp.friend]/2: Last sentence redundant?

Open
#2,939 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

[temp.friend]/2

A friend template may be declared within a class or class template. A friend function template may be defined within a class or class template, but a friend class template may not be defined in a class or class template. In these cases, all specializations of the friend class or friend function template are friends of the class or class template granting friendship.

[temp.friend]/3

A template friend declaration specifies that all specializations of that template, whether they are implicitly instantiated, partially specialized or explicitly specialized, are friends of the class
containing the template friend declaration.

Are these not semantically equivalent?

Also, are "friend template" and "template friend" interchangeable? If so, perhaps only one should be used for the sake of clarity.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the quoted wording in [temp.friend]/2 and [temp.friend]/3 and compare their semantic scope, including the terminology “friend template” and “template friend.” Check the surrounding [temp.friend] clauses for context. Done means determining whether the sentences are redundant and whether the terminology should be made consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, tex
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.