Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-10-10 06:55:33

From: "Thorsten Ottosen" <nesotto_at_[hidden]>
> > Usage:
> >
> > init(container)(value1)(value2)(value3);
> >
> > or
> >
> > init(map)(key1, value1)(key2, value2);
> nice stuff! It is considerably simpler than my initial code. I presume
> like the lisp syntax better :-)? As you know, I don't think it is the
> one.

I don't consider syntax important. It's a proof of concept; you can add
operator+= and operator, to the class if you like.

> 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? ;-)

Boost list run by bdawes at, gregod at, cpdaniel at, john at