as_to_python_function and abstract C++ classes
March 3, 2014
7:23 p.m.
Hi, Since I upgraded to gcc 4.8 I can no longer use as_to_python_function<T, C> with T being a type that's abstract (i.e. has >= 1 pure virtual method). This is because in gcc 4.8 the following: template <class U> static void convert_function_must_take_value_or_const_reference(U(*)(T), int, T* = 0) {} fails to compile since T is not constructible. Is this a known issue? Is there interest in a fix for this or are there are better ways to be constructing conversion functions in a typesafe manner in Boost.Python? Kind regards, Andy
4572
Age (days ago)
4572
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andy Schneider