[C++-sig] Re: Documentation suggestion

David Abrahams dave at boost-consulting.com
Tue Jun 17 17:56:30 CEST 2003

"Paul F. Kunz" <Paul_Kunz at SLAC.Stanford.EDU> writes:

>    After many hours of trying things and reading the reference manual,
> I came ups with this..
>   class_ < NTupleController, bases<>,
>     NTupleController, boost::noncopyable > ( "NTupleController", 
> 					     no_init )
>     .def ( "instance",  &NTupleController::instance,
> 	   return_value_policy < reference_existing_object >  () )
>     .staticmethod( "instance" )
> Did I get it right?


Singletons are a very specific case which combines a number of issues.
It might be good to use as an example, but I think I wouldn't want the
subject to be "how to wrap a singleton".  Maybe something more like
"handling private constructors"?

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list