View Issue Details

IDProjectCategoryView StatusLast Update
0000219OpenFOAMBugpublic2012-01-05 16:49
Reporteruser19Assigned Touser17 
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Summary0000219: Foam::List cannot be constructed from a STL iterator or pointer range
DescriptionAlthough Foam::List has the constructor

template<class T>
template<class InputIterator>
Foam::List<T>::List(InputIterator first, InputIterator last);

it cannot be used with any STL compliant iterator which models a pointer since the implementation of said constructor calls InputIterator::operator()() instead of dereferencing the iterator with the standard InputIterator::operator*().

I'm not aware of any iterator class in OpenFOAM providing operator(), e.g. Foam::UList<T> and its child classes typedef T* as their iterator type.
Additional InformationThis issue is also present in 2.0.x
TagsNo tags attached.

Activities

user17

2012-01-05 16:48

  ~0000901

Thanks for the bug report.

Fixed in commit eb976ba31c3644a536b658ea56c68d6c843b6976

user17

2012-01-05 16:49

  ~0000902

Thanks for the bug report.

Fixed in commit eb976ba31c3644a536b658ea56c68d6c843b6976

Issue History

Date Modified Username Field Change
2011-06-17 12:55 user19 New Issue
2012-01-05 16:48 user17 Note Added: 0000901
2012-01-05 16:49 user17 Note Added: 0000902
2012-01-05 16:49 user17 Status new => resolved
2012-01-05 16:49 user17 Fixed in Version => 2.1.x
2012-01-05 16:49 user17 Resolution open => fixed
2012-01-05 16:49 user17 Assigned To => user17