[aspect-devel] lexical_cast warning

Wolfgang Bangerth bangerth at math.tamu.edu
Sun Apr 13 13:54:25 PDT 2014


> ../source/termination_criteria/end_time.cc:85:5:   required from here
> /scratch/deal-trunk/installed/include/deal.II/bundled/boost/lexical_cast.hpp:1297:124:
> warning: ISO C++98 does not support the ‘%lg’ gnu_printf format
> [-Wformat=]
>                   finish = start + sprintf(out,"%.*lg",
> static_cast<int>(boost::detail::lcast_get_precision<double >()), val
> );

That's mildly annoying. I replaced it by the equivalent numerical constant.

Best
  W.

-- 
------------------------------------------------------------------------
Wolfgang Bangerth               email:            bangerth at math.tamu.edu
                                 www: http://www.math.tamu.edu/~bangerth/



More information about the Aspect-devel mailing list