Hugo Duncan wrote: > Hi, > > I am trying to use bind with __fastcall member funtion. > > Just including bind.hpp with BOOST_BIND_ENABLE_FASTCALL defined is > giving compile > errors on bcc 5.5 and cbuilder 6 with patch 4. > > Am I missing something, or is this broken? > > Hugo > > > #define BOOST_BIND_ENABLE_FASTCALL > #define BOOST_MEM_FN_ENABLE_FASTCALL > > #include "boost/bind.hpp" > > > Error E2188 c:\usr\boost\boost/bind/bind_cc.hpp 17: Expression syntax
Seems like the compiler can't handle __fastcall (and __stdcall) function pointers properly as required by bind. __fastcall member functions appear to work, though, if you remove BOOST_BIND_ENABLE_FASTCALL and leave only the BOOST_MEM_FN_ENABLE_FASTCALL define. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost