id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4359,boost bind doesn't work with inherited structures,jia3ep@…,Peter Dimov,"The following code gives an error in VC++2008, VC++2010, g++ 4.2.4: {{{ #include struct Y { void reset() {}; }; template struct my_pair { T1 first; T2 second; }; template struct my_pair2 : my_pair {}; typedef my_pair mypair_t; typedef my_pair2 mypair2_t; int main() { mypair_t t1; mypair2_t t2; boost::bind( &mypair_t::second, _1 )( t1 ).reset(); // OK! boost::bind( &mypair2_t::second, _1 )( t2 ).reset(); // error: cannot convert from 'const Y' to 'Y &' return 0; } }}} ",Bugs,new,Boost 1.44.0,bind,Boost 1.44.0,Problem,,,