← Back to team overview

dolfin team mailing list archive

Re: More problem with Expressions in Python

 

On Friday 16 October 2009 14:13:34 Anders Logg wrote:
> I have an Expression class with a member function that looks like this:
> 
>   void update(boost::shared_ptr<const dolfin::Function> u)
>   {
>    ...
>   }
> 
> I used to be able to send in a Python Function as argument to this
> from Python but not anymore. I get the following error message:
> 
>   argument 2 of type 'boost::shared_ptr< dolfin::Function const >'
> 
> This indicates that my Python Function is not recognized as something
> that can be used as an argument for
> 
>   boost::shared_ptr< dolfin::Function const >
> 
> Any ideas what goes wrong?

On a second thought:

Can you try skipping the const?

  void update(boost::shared_ptr<dolfin::Function> u)

This should hopefully work...

Johan


Follow ups

References