[C++-sig] Re: conversion of python dictionary to shared_ptrs

aashish aashish at vrac.iastate.edu
Fri Apr 2 04:59:56 CEST 2004



Hi, 

I need to pass a dictionary from python to C++ function which is defined as 

void setVariables(ValueMapPtr variables);

where I have typedef ValueMapPtr as 

//a shared ptr of a value map
typedef boost::shared_ptr< ValueMap > ValueMapPtr;

// And 
typedef std::map< std::string, std::vector<double> > ValueMap;


Is it possible?? Do I need to use register_ptr_to_python ? 

Any help is highly appreciated. 

Thanks, 
Aashish

 





More information about the Cplusplus-sig mailing list