ambiguous base class warning in g++

Dylan Cuthbert dylan@q-games.com
Wed Dec 12 22:52:00 GMT 2001


Hi there,

I'm trying to use the "loki" (from the book Modern C++ design)  tuple class
and am having trouble getting it to compile - the compiler warns about
ambiguous base classes when trying to use a Tuple< TYPELIST_3< int, int, int
> >, even though the book says it should be fine and goes at lengths to
explain why.

I'm using gcc 3.0.2 for Cygwin.

Because I don't want to start compiling with warnings enabled, can anyone
help out please?  Is there a way to disable this particular warning or is
the problem inherent in the loki library design?

Regards

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com



More information about the Gcc-help mailing list