Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2004-05-05 13:14:18


#include <boost/bind.hpp>
using namespace boost;
#include <vector>

struct base {
    int i;
};

struct test : public base {
    // if you uncomment here and comment above, it'll work
// int i;
};

int main() {
    typedef std::vector<test> vector;
    vector v;
    // generates compile-time error on vc7.1
    bind<int&>( mem_fn(&test::i), _1) (v.front());
    return 0;
}

Peter, any workarounds, until its' fixed?

Best,
John

-- 
John Torjo
Freelancer
-- john_at_[hidden]
-- http://www.torjo.com/logview/ - viewing/filtering logs is just too easy!

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