Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-03-21 16:05:56

"Jens Theisen" <jens.theisen_at_[hidden]> wrote in message
| Thorsten Ottosen wrote:
| > ctor() : v( list_of(1)(2).to_container(v) )
| > { }
| What are you proposing? You don't want to write to v before it's
| construction, do you?
| I see that this is somewhat anoying. Even with implicit_cast, because
| then you have to give the containers type in the initialisation again.

to_container(v) is actually an existing work-around for compilers which can't
even do
Cont = list_of(...);

All it does is to deduce the return type; it doesn't write to v, it finds its

I should update the docs to make this a more used method of disambiguation


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