Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2002-10-10 10:20:07


> > Now, your templates are really clever. I think that approach would
remove
> > much dependency. However, I think I will still get problems
> > when I need to use set and stack because insert() is different for set
and
> > stack uses push(). What would be the most elegant way out of this
trouple?
>
> It works for std::set. std::stack? Have you ever used it, let alone
> initialized it with preset values? ;-)

Sorry, I made a wrong test. My test didn't compile with set, but it was
wonrg. Well, stacks occur
sometimes. Think of a unit test of some function that modifies a stack or
takes a stak as input. In that
case it would be nice with some quick setup of a test stack.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk