Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on Is there a way to have "partially recursive" function constraints in C++?

$
0
0
Overloaded functions are unsuitable for this, because the earlier overloads don't see the later ones (except via ADL, which usually isn't good enough). Make a class template and specialize it instead. You can wrap it in a function for a prettier call syntax.

Viewing all articles
Browse latest Browse all 1287

Trending Articles