hsf-training / hsf-training/cpluspluscourse

Add a slide on member function pointers

Open
#326 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
TeX
Stars
313
Forks
104
PR merge metrics
No merged PRs in 30d

Description

AFAIK, we don't discuss member function pointers (e.g. int (S::*)(float) would be the pointer type of f in struct S{ int f(float); };) and operator.*/operator->* anywhere.

Member pointers are not only super cryptic, they also make good candidates for C++ quizzes (fun!) :)

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

Start by locating the existing C++ course slides that cover pointers, member functions, or operator syntax. Add a slide explaining member function pointer types such as int (S::)(float) and the . and ->* operators, with a quiz-oriented example; done means these topics are covered in the course materials.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.