Jason Rhinelander
6b52c838d7
Allow passing base types as a template parameter
...
This allows a slightly cleaner base type specification of:
py::class_<Type, Base>("Type")
as an alternative to
py::class_<Type>("Type", py::base<Base>())
As with the other template parameters, the order relative to the holder
or trampoline types doesn't matter.
This also includes a compile-time assertion failure if attempting to
specify more than one base class (but is easily extendible to support
multiple inheritance, someday, by updating the class_selector::set_bases
function to set multiple bases).
2016-09-06 20:34:24 -04:00
..
2016-09-06 12:22:13 -04:00
2016-09-06 16:41:50 +02:00
2016-08-19 13:19:38 +02:00
2016-09-06 13:02:29 +09:00
2016-09-03 17:34:41 -04:00
2016-09-06 16:41:50 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-06 16:41:50 +02:00
2016-09-06 16:41:50 +02:00
2016-09-06 12:22:13 -04:00
2016-09-06 12:22:13 -04:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-06 13:02:29 +09:00
2016-08-25 17:08:09 +02:00
2016-09-06 13:02:29 +09:00
2016-08-19 13:19:38 +02:00
2016-08-19 16:31:48 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 16:31:48 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-06 20:34:24 -04:00
2016-09-06 20:34:24 -04:00
2016-09-06 20:34:24 -04:00
2016-08-19 16:31:48 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-06 16:41:50 +02:00
2016-09-06 16:41:50 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-25 17:08:09 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-06 16:41:50 +02:00
2016-09-06 16:41:50 +02:00
2016-09-03 17:34:41 -04:00
2016-08-24 23:30:00 +01:00
2016-09-04 18:23:55 -04:00
2016-09-04 18:23:55 -04:00
2016-09-06 13:02:29 +09:00
2016-09-05 17:11:16 -04:00
2016-09-06 20:34:24 -04:00
2016-08-29 19:41:44 -04:00