10 Sep
2009
10 Sep
'09
12:59 p.m.
Andrew Sutton wrote:
That's what the problem is... I couldn't see it. You can't instantiate a template over the type of a variable length array. You can probably think of it as a local type (a struct within a function), but it probably goes beyond that. Last time I checked, calling typeid on e.g., D resulted in a compiler error. That may have been GCC 4.1, though. Didn't GCC drop them at some point?
With gcc version 4.3.2 they still exist, and yes, you can't use typeid with nor instantiate a template over it. At least, I would have liked a more meaningful error message with the johnson_all_pairs_shortest_paths() call. Thanks for the clarification, Ralf