Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2001-11-23 09:12:21


Peter Dimov wrote:
> > I would check in the fix myself ('cause I need it :),
>
> Out of curiosity, why do you need it?

    struct something
    {
        int id() const;
    };

    mtn::vector<something*> some_things;
    mtn::vector<std::string> result(mtn::transformed_seq(
          some_things
        , boost::compose_f_gx(
                std::ptr_fun(mtn::to_string)
              , boost::mem_fn(&something::id)
              )
        ));

> Impoliteness aside, making changes to other libraries without
> warning has an additional downside: if the library doesn't
> pass the regression tests, the failure gets attributed to you,
> although it might be a prior change that caused the test to fail.

You got me puzzled here. Could you explain how does the above work? :)

Aleksey


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