mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
List: Removed unused constructor from iterators
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2074
This commit is contained in:
@ -132,35 +132,6 @@ int main(int argc, char *argv[])
|
||||
<< "-wordList: " << wLst << nl
|
||||
<< "-stringList: " << sLst << endl;
|
||||
|
||||
|
||||
Info<< nl
|
||||
<< "Test List Iterator Constuctor" << endl;
|
||||
|
||||
List<vector> initialList(IStringStream("((0 1 2) (3 4 5) (6 7 8))")());
|
||||
|
||||
Info<< " Initial List: " << initialList << endl;
|
||||
|
||||
List<vector> iteratorList(initialList.begin(), initialList.end());
|
||||
|
||||
Info<< " Foam::List constructed from Foam::List: "
|
||||
<< iteratorList << endl;
|
||||
|
||||
std::list<vector> stlList(initialList.begin(), initialList.end());
|
||||
|
||||
Info<< " std::list constructed from Foam::List: ";
|
||||
|
||||
std::list<vector>::iterator it;
|
||||
for (it=stlList.begin(); it != stlList.end(); ++it)
|
||||
{
|
||||
Info<< *it << " ";
|
||||
}
|
||||
Info<< endl;
|
||||
|
||||
List<vector> iteratorSTLList(stlList.begin(), stlList.end());
|
||||
|
||||
Info<< " Foam::List constructed from std::list: "
|
||||
<< iteratorList << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user