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:
Henry Weller
2016-08-05 16:22:51 +01:00
parent 72ec8e0574
commit 3c423d64d2

View File

@ -95,9 +95,9 @@ int main(int argc, char *argv[])
List<vector> list5
{
vector(5, 3, 1),
vector(10, 2, 2),
vector(8, 1, 0)
{5, 3, 1},
{10, 2, 2},
{8, 1, 0}
};
Info<< "list5: " << list5 << endl;