$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-12-25 01:55:51
"Stephan T. Lavavej" <stl_at_[hidden]> wrote in message
news:20031225043250.2B6F726ACFD_at_water-ox.its.caltech.edu...
> Quoth http://boost.org/libs/array/array.html :
>
> > Could "{ ... }" be used portably instead of "{ { ... } }" to
> > initialize values?
> > 8.5.1 (11) of the Standard seems to allow it; however, gcc
> > 2.95.2 prints a warning message.
>
> C:\Temp>type array.cc
> #include <iostream>
> #include <boost/array.hpp>
> using namespace std;
> using namespace boost;
>
> int main() {
> array<int, 4> a = { 15, 20, 25, 30 };
while this syntax is nice, it of no use when having an array<> in a class.
My assign lib (assign subtree in the sandox)
ollows you to initialize your array in those situations (and in those where
your compiler is not compliant)
br
Thorsten