Re: [C++-sig] Multiple registration safety and unit testing

2016-01-30 Thread Stefan Seefeld
On 29.01.2016 19:19, David Sankel wrote: > Hello all, > > I'd like to allow a class to be registered more than once and wanted > to get your opinion if this change would be a good idea. > > 'boost::python::class_' always adds a class to the current scope and > registers it in the global registry. T

[C++-sig] Multiple registration safety and unit testing

2016-01-30 Thread David Sankel
Hello all, I'd like to allow a class to be registered more than once and wanted to get your opinion if this change would be a good idea. 'boost::python::class_' always adds a class to the current scope and registers it in the global registry. The global registry code (particularly the 'insert' fu