[petsc-dev] wrong PETSc code, please read the PETSc style guide

Sean Farley sean at mcs.anl.gov
Mon Sep 17 20:40:49 CDT 2012


On Mon, Sep 17, 2012 at 8:38 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
> It means the wrong thing in C++. Specifically, it tries to convert the
> number to bool since there is no std::complex<T>::operator!(T), but
> std::complex does not provide a conversion to bool either. This produces
> errors like
>
> error: invalid argument type 'std::complex<double>' to unary expression

Queue C++ rant from Barry in 3 ... 2 ...



More information about the petsc-dev mailing list