On Fri, Jul 13, 2001 at 10:05:29AM +0200, Laurent Bonnaud wrote: > > Hi, > > you write that "apparently", g++ 3.0 tries a longer conversion chain > than 2.95. Indeed, the compiler message let us think so. But to > verify this, I added traces into your testcase. The result is that > both g++ versions use the same conversion chain (and indeed g++ 3.0 > takes much longer to compile) : > > $ ./a.out > non const aios->aiosout > > So the only problem here seems to be the compilation speed. Perhaps > g++ 3.0 has to take into account more copy constructors for the > conversion chain computation than g++ 2.95 in order to comply with more > complex new C++ rules ?
The increased compilation time is actually due mostly to the greatly modified C++ library - it's the #include <iostream> that takes longer. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer