论文部分内容阅读
译注:Stepanov 的这篇访谈录中有些观点相当激进,正确与否尚待时间检验。请读者不要“照单全收”,不妨持“拿来主义”的态度“批判地继承和发扬”。 Q STL 是对 C++编译器的极限考验。现代的 C++编译器还不能正确编译全部 STL 代码。[译注:访谈时如此。]那么,你是如何开发和测试 STL 的呢?A 为伊消得人憔悴啊,我确实为了成功编译 STL 而增添了不少白发。不幸的现实是,因为编译器的 bug 和限制,现在的 STL 实作版本中不少代码并不是最优的。但另一方面,幸运
Annotations: Some of Stepanov’s interviews are rather radical and correct or not yet time tested. Please readers do not “accept all”, may wish to “take it” attitude “critically inherit and carry forward.” Q STL is the ultimate test for C ++ compilers. Modern C ++ compilers still do not compile all the STL code correctly. [Annotation: Interview so. ] So, how do you develop and test STL? A haggard Iraqi people, ah, I did in order to successfully compile STL added a lot of white hair. The unfortunate reality is that many of the current STL implementations are not optimal because of compiler bugs and limitations. But on the other hand, lucky