forked from boostorg/array
array5.cpp:
- Add (redundant) braces around initializer to silence GCC [SVN r12528]
This commit is contained in:
@ -57,7 +57,7 @@ int main()
|
||||
|
||||
typedef boost::array<double,6> DArray;
|
||||
typedef boost::array<int,6> IArray;
|
||||
IArray ia = { 1, 2, 3, 4, 5, 6 };
|
||||
IArray ia = { { 1, 2, 3, 4, 5, 6 } } ; // extra braces silence GCC warning
|
||||
DArray da;
|
||||
da = ia;
|
||||
da.assign(42);
|
||||
|
Reference in New Issue
Block a user