Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] DistanceMatrix type for johnson_all_pairs_shortest_paths
From: Ralf Goertz (R_Goertz_at_[hidden])
Date: 2009-09-10 08:59:37


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net