[python] Avoid VirtualFunction in python interface
- Remove include of
python/function.hh
from python-related headers. This uses the deprecatedVirtualFunction
interface and thus clutters the compile output with many warnings. To keep the dunepythontest.cc working, the include is now added there directly. - Implement conversion to
std::function
andBoundarySegment
- Switch
dunepythontest.cc
fromVirtualFunction
tostd::function
. This 'test' mostly demonstrates the use of the interface. This is now done in terms ofstd::function
instead of the deprecatedPythonFunction
which implements the deprecatedVirtualFunction
interface.