i'm not sure how you mean to use a smart_ptr - maybe we're talking about
different things here? a smart_ptr is also an object and can't be passed
to a function expecting a function pointer.
as for the example, i'm guessing you mean the SignalHandler class? i
don't really see the point of that template at all; have you tried
calling that constructor with anything other than a function for the
CallBack type?
Vincent Torri wrote:
Can't you wrap ecore objects with a boost::smart_ptr ? I use the smart_ptr
to wrap objects of the Gstreamer library without any problem. After that,
I think it is not difficult to use the C++ stuff of boost. For examples,
maybe you can have a look there:
http://cvs.sourceforge.net/viewcvs.py/avisynth2/avisynth/src/gstreamer/?only_with_tag=avisynth_3_0
Hope this helps
Vincent
On Sun, 31 Jul 2005, xnowfall wrote:
ecore_* takes a pointer to a function whereas boost::bind returns an
object (that can be used as a function by operator overloading). to use
a member function you need both a pointer to an object instance and a
pointer to the function, which boost::bind wraps up in an object, but
which the efl can't use.
it would be nice to use stuff like boost::bind, but that's a c++ thing
and the efl is c
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users