且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在c ++中调试大量模板化的代码?

更新时间:2023-08-19 17:04:52

对于STL,至少有可用的工具,将输出更人性化的错误消息。请参见 http://www.bdsoft.com/tools/stlfilt.html

For the STL at least there are tools available that will output more human-friendly error messages. See http://www.bdsoft.com/tools/stlfilt.html

对于非STL模板,你只需要了解错误的含义。在你看过它们十几次后,变得更容易猜到问题是什么。如果你在这里张贴他们可能有人可以帮你找出来。

For non-STL templates you'll just have to learn what the errors mean. After you've seen them a dozen times it becomes easier to guess what the problem is. If you post them here maybe somebody can help you figure it out.