
13 Nov
2004
13 Nov
'04
7:10 p.m.
g++ does NRVO, which some popular optimising compilers (like VC++ 7.1) do not do. In my experience, some programs compiled with g++ are noticeably faster than when compiled with vc++ 7.1, mainly due to the NRVO. Afaik, NRVO it not implemented in VC++ 7.1 because it conflicts with the current C++ standard (3.7.2).
DA> What makes you think it conflicts with the C++ standard? I guess I was wrong, I read 3.7.2, but missed the exception for NRVO in 12.8.15. Valentin Samko http://val.samko.info