hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.4K
active users

Šimon Tóth

One of the possibilities to introduce a customization point in a library is through ADL (Argument Dependent Lookup). With C++20 concepts, this approach got much cleaner.

A Niebloid combined with a concept that detects the presence of custom implementation can handle the fallback to default implementation without the need to fiddle with namespaces on the calling site.

Compiler Explorer link: compiler-explorer.com/z/r3vcaP

@simontoth "I miss SFINAE" ... nobody said ever