July 2, 2003
3:55 p.m.
--- Philippe Fremy <phil@freehackers.org> wrote:
template<data2str f> char const * data2strWrapperWithList( boost::python::list dataList ) { Apdu apdu = list2apdu( dataList ); return (const char *) ((*f)( apdu.bytes(), apdu.len() )); }
Maybe VC gets confused because "f" does not appear in the signature of your function? I'd try to work around this like so: template<data2str f> struct data2strWrapper { static char const* WithList(boost::python::list dataList) { Apdu apdu = list2apdu( dataList ); return (const char *) ((*f)( apdu.bytes(), apdu.len() )); } }; Then def data2strWrapper<T>::WithList. Ralf __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com