[C++-sig] Boost python and boost signal

Stefan Seefeld stefan at seefeld.name
Mon Nov 21 15:25:57 CET 2011


On 11/21/2011 09:08 AM, Jay Riley wrote:
> I was wondering if it's possible to hook python functions as slots
> into boost::signal or boost::signal2 signals? I found an old thread
> that said it wasn't directly possible, but it was from 2004.

Given that it's possible to wrap Python functions in ordinary C++
functions / function objects, I don't see why it shouldn't be possible
to use Python functions wherever you'd be able to use C++ functions.
Just be careful with proper Python runtime initialization and thread safety.

    Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...



More information about the Cplusplus-sig mailing list