-=> Quoting Thomas Maeder to Darin McBride
DM> typedef queue > IOQueue;
DM> On the marked line (!!!), the compiler complains that it cannot find
DM> function "queue >::push(char) volatile". The function,
DM> volatile, exists, though.
TM> Now everything is clear:
TM> The definition of the queue container adaptor looks like this:
TM> template >
TM> class queue {
TM> //etc.
TM> };
Since when? My GCC 2.7.2.1 has:
template
class queue {
// etc.
};
Hmmm... I'm gonna have to see about the upgrade. Mind you, GCC doesn't
support default template arguments yet.
I've managed to pull SGI's free "thread-safe" STL implementation. It has the
definition you give... but it won't compile with GCC (yet). IMO, the new
version is kinda dopey... the only use of T is to determine the default
type... it isn't used internally. Sheesh.
TM> You are expected to push deque instances into a
TM> queue>, not chars.
TM> Try
TM> typedef queue > IOQueue;
TM> or, since your compiler seems to support default template arguments,
TM> typedef queue IOQueue;
However, this is not my problem whatsoever. The problem is exactly as given
at the top - that the compiler expects a volatile function and cannot find
it.
... I am Drunk of Borg. Resultance is floor tile.
--- FastEcho 1.46
---------------
* Origin: House of Fire BBS - Toronto - (416)601-0085 - v.34 (1:250/536)
|