One thing to keep in mind when implementing templated classes is the handling of dependent names.
Name lookup for non-dependent names is done before the template is instantiated, which can sometimes lead to surprising behaviour.
Click to open in Compiler Explorer.
Leave a comment