Skip to content
Snippets Groups Projects
Commit d26d2332 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[cleanup] Make initialization consistent for all make_array implementations

While the following is legal c++11

  array<T,n> foo = { t1, t2, ...}

older compilers (namely gcc-4.4) issue a warning on missing braces.
parent f248aa8a
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ namespace Dune
const T &t4, const T &t5, const T &t6, const T &t7,
const T &t8, const T &t9)
{
array<T, 10> result = { t0, t1, t2, t3, t4, t5, t6, t7, t8, t9 };
array<T, 10> result = { {t0, t1, t2, t3, t4, t5, t6, t7, t8, t9} };
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment