[C++-sig] add_property and boost::bind?

Max Khesin MKhesin at liquidnet.com
Wed Aug 4 17:16:08 CEST 2004


Is it possible to define a property using boost::python and pass it a
boost::bind object instead of a function pointer? e.g something like


struct Foo
{
	int lookup(const char*);
};


class_<Foo>("Foo")
	.add_property("aaa", boost::bind(&Foo::lookup, "aaa"))
;
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20040804/4ebe3f4b/attachment.htm>


More information about the Cplusplus-sig mailing list