[C++-sig] Extract

Sean Ross-Ross srossross at gmail.com
Wed May 30 20:19:57 CEST 2007


> If ParameterList is a class template, you have to instantiate a  
> type from it
> in order to export ot to python. Once this is done, 'T' (and thus,  
> 'whatever'),
> are bound to specific types, so all the rest should 'just work':

No, Parameter List is not a class template but its method set is  
templated

	class ParameterList {
		
		...
		template<typename T>
   		void set( string const& name, T const& value, std::string const&  
docString = "");
		...

And yes I could create a method to use only a limited number of types  
but I would like to pass a python object in as "value" and have boost  
try and extract a c++ object to pass to set.
I have no control over this class, it is part of a software package.

~Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070530/73a3083c/attachment.htm>


More information about the Cplusplus-sig mailing list