mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Test-List: Add demonstration of C++11 initializer list in conjunction with uniform initialization of vector
List<vector> list5
{
{5, 3, 1},
{10, 2, 2},
{8, 1, 0}
};
This commit is contained in:
@ -95,9 +95,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
List<vector> list5
|
List<vector> list5
|
||||||
{
|
{
|
||||||
vector(5, 3, 1),
|
{5, 3, 1},
|
||||||
vector(10, 2, 2),
|
{10, 2, 2},
|
||||||
vector(8, 1, 0)
|
{8, 1, 0}
|
||||||
};
|
};
|
||||||
Info<< "list5: " << list5 << endl;
|
Info<< "list5: " << list5 << endl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user