Clang (OS X) requires “template” keyword in a particular nested declaration, while VS forbids it

后端 未结 2 1821
-上瘾入骨i
-上瘾入骨i 2021-01-02 15:38

I am writing a cross-platform application in two compilers (Clang on Xcode v5.0.2, and Visual Studio 2012 Update 4) and I have run into a scenario in which the two compilers

2条回答
  •  醉酒成梦
    2021-01-02 16:32

    Clang is correct, Base is dependent on a template parameter. This is yet another symptom of Visual C++ not implementing two-phase name lookup for templates.

提交回复
热议问题