Skip to content
Snippets Groups Projects
Commit 15abaf65 authored by Markus Blatt's avatar Markus Blatt
Browse files

icc does not seem to no associated type value_type of an iterator. Now we use...

icc does not seem to no associated type value_type of an iterator. Now we use the iterator_traits to extract it.

[[Imported from SVN: r1147]]
parent 93dde603
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@
#include <dune/common/sllist.hh>
#include <dune/istl/overlappingschwarz.hh>
#include <iterator>
int main(int argc, char** argv)
{
......@@ -110,7 +112,8 @@ int main(int argc, char** argv)
if(N<10) {
int i=0;
for(iterator iter=domains.begin(); iter != domains.end(); ++iter) {
typedef iterator::value_type::const_iterator entry_iterator;
typedef std::iterator_traits<iterator>::value_type
::const_iterator entry_iterator;
std::cout<<"domain "<<i++<<":";
for(entry_iterator entry = iter->begin(); entry != iter->end(); ++entry) {
std::cout<<" "<<*entry;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment