[Bug c++/44225] Workaround for error: ... cannot appear in a constant-expression
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jul 24 22:12:00 GMT 2010
------- Comment #2 from pinskia at gcc dot gnu dot org 2010-07-24 22:11 -------
There is no work around because double is not a valid integer constant
expression and because you cannot class initialize a static const double
variable.
Also this is not the right place to ask questions like this. You should use a
C++ forum for how to fix your code.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44225
More information about the Gcc-bugs
mailing list