
10 Jun
2004
10 Jun
'04
11:14 a.m.
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.