[petsc-dev] Fwd: SACUDA - Cannot compile

Jed Brown jed at 59A2.org
Wed Oct 27 16:48:43 CDT 2010


On Wed, Oct 27, 2010 at 17:45, Barry Smith <bsmith at mcs.anl.gov> wrote:

> hmm, is there any reason we can't/shouldn't use a typedef for our VecType
> (and its many friends)?


I think the issue is because "const" is scoped differently for a macro than
for the typedef.

typedef char *Foo;

now "const Foo" means "char *const" instead of "const char *".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20101027/6a075cc1/attachment.html>


More information about the petsc-dev mailing list