|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2002-09-10 09:07:08
From: "Paul A. Bristow" <boost_at_[hidden]>
---------------------------------------------------------------------------
-----
> Sadly, according the MSVC .net (never the most reliable authority)
>
> Only static const INTEGRAL members can be initialised,
>
> only static const int
>
> template <unsigned int decimal_precision>
> struct interval_pi
> {
> static const double lower = 3; // integer default version.
> static const double upper = 4; // 3 < pi < 4
> };
>
>
> Or is this not true for 'real' compilers?
It is true for all C++ compilers.
> Other suggestions?
I know this isn't what you're after, but a copy of the standard is always
helpful:
http://webstore.ansi.org/ansidocstore/product.asp?sku=INCITS/ISO/IEC+14882-
1998
-----------------------------------------------------------
David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk