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

Comment by HolyBlackCat on Dependent names in C++ template

$
0
0
@Ashiful The error happens during the initial parse of b, not when it's instantiated, so the compiler can't see the lack of specializations at that point. This now isn't specific to your case, it's the same story as every other case where you need this-> in a template. Hard to say why exactly they did this, probably to be able to quickly reject misspelled global variables/functions even without the instantiation.

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>