chromium / subspace

A concept-centered standard library for C++20, enabling safer and more reliable products and a more modern feel for C++ code.; Also home of Subdoc the code-documentation generator.
https://suslib.cc
Apache License 2.0
89 stars 15 forks source link

Support method pointers for Fn concepts and Fn*Ref types #294

Closed danakj closed 1 year ago

danakj commented 1 year ago

A class method pointer acts like a function that receives a reference to the class as its first parameter.

So a Fn concept that receives a type const T& as its first parameter can be satisfied by any const method on T.