
Gennadiy Rozental wrote:
Furthermore, you have O(N) instantiations for every lookup, we have O(1).
I do not understand your code that well to contradict you, but I frankly very much doubt so.
Ok. I think I see where O(1) comes from. I've reimplemented my solution based on similar idea. Now the total size is ~60 lines and without *any* includes (see attached). And it support
1. typed keywords to support strict type checking 2. non-typed keywords to support template functions parameters 3. optional parameters and default values ( could use with runtime if without compile-time errors)
What are the other "every feature you support" but I don't?
SFINAE support, positional parameters and the fatal design mistake of treating missing required arguments as runtime errors. I'm done in this thread now. -- Daniel Wallin