On Wed, 2005-01-26 at 03:58, Stuart Siegel wrote:
Can anyone tell me why the line:
time_period t4(t2);
in the attached cpp file doesn't compile but the line:
time_period t3(t1);
does? it seems like i should be calling the same copy constructor in both cases but g++ 3.3.4 complains:
The difference between the two lines above is this: time_period t2( ptime(min_date_time), ptime(max_date_time) ); g++ is taking this as a function declaration. (I don't know whether it should be doing so but it is.) Therefore time_period t2 = time_period( ptime(min_date_time), ptime(max_date_time) ); fixes the subsequent problem with time_period t4(t2); N.B. This fix compiles with boost 1.32.0, but not with boost 1.31.0. (g++ 3.3.3) I hope this helps. -- Stephen Jackson