Boost logo

Boost :

From: Daniel Schlyder (daniel_at_[hidden])
Date: 2005-03-31 01:13:01


Thorsten Ottosen:
> "Daniel Schlyder" <daniel_at_[hidden]> wrote in message
> news:1042924625.20050330170947_at_bitblaze.com...
> | Thorsten Ottosen:
| >> I would be worth knowing if the old boost.1.32 code worked with your
| >> compiler.
> |
> | It did. So did CVS dated 2005-03-15 00:00:00Z.

> ok, very good to know.

To be more specific, it's the changes in revision 1.16 of
boost/assign/list_of.hpp that break my code.

I've run into more trouble with the latest library version. Now that I have
to use to_container(), it seems I can no longer use list_of() in function
arguments. Ie., stuff like

menu.push_back<option<unsigned> >("Unsigned Option",
    boost::assign::list_of<std::pair<unsigned, std::string> >
        (1, "One")
        (3, "Three")
        (5, "Five")
        (7, "Seven")
        (9, "Nine"),
    boost::bind(return_var<unsigned>, boost::cref(g_unsigned_option)),
    boost::bind(set_var<unsigned>, boost::ref(g_unsigned_option), _1)
);

no longer compiles and I don't see how to fix it without creating a
temporary object before the function call. :(

--
Daniel Schlyder
http://bitblaze.com/

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