Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-06-10 06:26:35


Peter Dimov wrote:
> Vladimir Prus wrote:
> > Hello,
> > when I try to compiler the following code snippet on vc6 I get a lot
> > of errors:
> >
> > #include <locale>
> > #include <boost/bind.hpp>
> >
> > void aux(const std::codecvt<wchar_t, char, mbstate_t>& cvt)
> > {
> > boost::bind(boost::mem_fn(&std::codecvt<wchar_t, char,
> > mbstate_t>::in), &cvt,
> > _1, _2, _3, _4, _5, _6, _7);
> > }
>
> Have you tried it without the superfluous mem_fn? On VC6, bind isn't able
> to look at ::result_type.

Without mem_fn it works. Thanks!

- Volodya


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