Barry Smith <[email protected]> writes:
>   PetscNew() is PetscCalloc1(1,&beasty); the original analogy with C++
>   was that it creates a struct and initializes it to zero entries. :-)

But C++ new does not initialize structs.  It does calls constructors for
non-POD types.

>   I’d like to keep it.

Okay, it becomes

  PetscNew(&beasty);

Attachment: pgpuXAFRjh9En.pgp
Description: PGP signature

Reply via email to