How to Compile libstdc++ v3 by gcc 2.95.3?
Zi-Wei Chiou
jwchiu@csie.nctu.edu.tw
Mon Apr 15 06:58:00 GMT 2002
On Mon, Apr 15, 2002 at 02:30:15PM +0200, Gabriel Dos Reis wrote:
> John Love-Jensen <eljay@adobe.com> writes:
>
> | Hi Chih-Wei,
> |
> | Not that this will help with your compile issue, but...
> |
> | You shouldn't inherit from the STL classes.
>
> Certainly you can. It just depend on what you're doing with your
> derived class.
>
> At any rate, whether it is conforming to one's religion to inherit
> from an STL class is irrelevant to the issue raised by the original
> poster.
>
> -- Gaby
My mistake. But the errors are the same even though I use containment.
class bar { std::stack<int> s; };
More information about the Libstdc++
mailing list