
25 Mar
2009
25 Mar
'09
3:13 p.m.
Rutger ter Borg wrote:
Please see attached an example of constructing a fusion map, of which I would expect to give identical results.
Really?
// OK map_type map();
This looks like a function declaration to me (a function with name "map" that takes no arguments and returns a map_type), but C++ might be intelligent enough to see that it is a default initialization.
// Compiler error -- tries to copy map_type map;
This looks like a default initialization to me. I have no idea, whether this default initialization should compile without error. Regards, Thomas