diff --git a/applications/test/List/Test-List.C b/applications/test/List/Test-List.C index 16b3210958..4f52872b94 100644 --- a/applications/test/List/Test-List.C +++ b/applications/test/List/Test-List.C @@ -55,6 +55,9 @@ See also #include #include +// see issue #2083 +#undef Foam_constructList_from_iterators + namespace Foam { @@ -254,8 +257,12 @@ int main(int argc, char *argv[]) Info<< "list4: " << list4 << nl << "list5: " << list5 << endl; + #ifdef Foam_constructList_from_iterators List list6(list4.begin(), list4.end()); Info<< "list6: " << list6 << endl; + #else + Info<< "NOTE: no construction from two iterators" << endl; + #endif // Subset const labelList map{0, 2}; @@ -273,9 +280,13 @@ int main(int argc, char *argv[]) // scalarList slist = identity(15); // // More writing, but does work: + #ifdef Foam_constructList_from_iterators scalarList slist(labelRange().begin(), labelRange(15).end()); Info<<"scalar identity:" << flatOutput(slist) << endl; + #else + Info<<"No iterator means of creating a scalar identity list" << endl; + #endif printListOutputType