Deciphering C++ template error messages

后端 未结 6 1557
误落风尘
误落风尘 2020-12-02 20:55

I\'m really beginning to understand what people mean when they say that C++\'s error messages are pretty terrible in regards to templates. I\'ve seen horrendously long erro

6条回答
  •  清歌不尽
    2020-12-02 21:14

    At least in Visual Studio, there is more information given in the Output Build window rather than the Error List. I've had a template error in the Error List state, "Cannot convert Foo to Foo". There were some lines following the actual error in the Output window that helped me to decipher what the actual problem was.

提交回复
热议问题