[C++-sig] same to_python_converter in multiple modules?

David Abrahams david.abrahams at rcn.com
Thu May 30 22:50:53 CEST 2002

From: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com>

> --- David Abrahams <david.abrahams at rcn.com> wrote:
> > > Common shared library sounds OK, but the global variable is
> >
> > Only if you're using static initializers to register the converter
> I do not understand this. Could you please explain?

If you're going to call the registration function from multiple modules,
you need some mechanism to ensure that the actual work only gets done once.


More information about the Cplusplus-sig mailing list