dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08571
Re: Parameter
On Tue, Jul 08, 2008 at 09:35:15AM +0200, Ola Skavhaug wrote:
> Could we add a default constructor to Parameter, e.g., letting it default to
> int or similar? This will make it possible to wrap it with SWIG. The current
> state of SWIG will declare variables like this (depending on where
> Parameter lives in the argument list):
>
> Parameter arg3;
>
> This fails due to the lack of default constructor for Parameter. I don't know
> how to get around this silly SWIG behaviour.
>
> Ola
We could add a default constructor for an int parameter named
"undefined" with value 0 or similar. Parameter is never used directly
by a user anyway (since it will be cast automatically to the
underlying type).
--
Anders
Attachment:
signature.asc
Description: Digital signature
Follow ups
References