Wenzel Jakob 86d825f330 Redesigned virtual call mechanism and user-facing syntax (breaking change!)
Sergey Lyskov pointed out that the trampoline mechanism used to override
virtual methods from within Python caused unnecessary overheads when
instantiating the original (i.e. non-extended) class.

This commit removes this inefficiency, but some syntax changes were
needed to achieve this. Projects using this features will need to make a
few changes:

In particular, the example below shows the old syntax to instantiate a
class with a trampoline:

class_<TrampolineClass>("MyClass")
    .alias<MyClass>()
    ....

This is what should be used now:

class_<MyClass, std::unique_ptr<MyClass, TrampolineClass>("MyClass")
    ....

Importantly, the trampoline class is now specified as the *third*
argument to the class_ template, and the alias<..>() call is gone. The
second argument with the unique pointer is simply the default holder
type used by pybind11.
2016-05-26 13:36:24 +02:00
..
2016-04-25 23:04:27 +02:00
2016-04-25 23:04:27 +02:00
2016-04-25 23:04:27 +02:00
2015-10-18 18:01:33 +02:00
2015-10-01 17:13:38 +02:00
2015-10-13 23:44:25 +02:00
2015-10-13 23:44:25 +02:00
2016-04-13 02:58:56 +02:00
2016-04-13 14:42:17 +02:00
2016-04-13 14:42:17 +02:00
2016-05-16 12:33:20 +02:00
2016-05-16 12:12:58 +02:00
2016-05-16 12:12:58 +02:00
2016-05-15 20:46:07 +02:00
2015-07-09 15:27:32 +02:00
2016-02-20 21:19:30 +01:00