mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 16:52:15 +00:00
- Added a new function, no_override. When a member function is specified as "no_override", no virtual wrappers are generated for it, improving performance and letting the code more clean. - There was a bug in which the policy of virtual member functions was being ignored (patch by Roman Sulzhyk). [SVN r18814]
7 lines
291 B
Plaintext
7 lines
291 B
Plaintext
A = Class('virtual2::A', 'virtual2.h')
|
|
set_policy(A.make_new, return_value_policy(manage_new_object))
|
|
B = Class('virtual2::B', 'virtual2.h')
|
|
set_policy(B.make_new, return_value_policy(manage_new_object))
|
|
Function('virtual2::call_fs', 'virtual2.h')
|
|
Function('virtual2::call_f', 'virtual2.h')
|