[C++-sig] bpl v2: classes with private constructors

Peter Schoen Peter.Schoen1 at epost.de
Thu Aug 22 01:54:28 CEST 2002

Dear y'all,

the constructors of some classes I am trying to wrap are private because 
instances must be created by using a factory. Is it possible to wrap such 
classes using bpl v2?

Any links to examples, etc. would be highly appreciated.

In an older mail I read something about specifying the HeldType template 
argument of the class_<> template to solve such a problem, but I did not 
really understand this solution, yet, sorry.

Very best wishes


More information about the Cplusplus-sig mailing list