Opened 15 years ago

Closed 15 years ago

#402 closed enhancement (fixed)

const conversion in StrideIterator

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.5
Component: utility Version: trunk
Keywords: Cc:

Description

Basically StrideIterator<Base> should be assignable to a StrideIterator<Base2> iff Base is assignable to a Base2.

Look at DataIterator? for hints.

Change History (3)

comment:1 Changed 15 years ago by Peter

Resolution: fixed
Status: newclosed

fixed in [1386]

comment:2 Changed 15 years ago by Peter

Priority: minorcritical
Resolution: fixed
Status: closedreopened

iterator_test doesn't compile on my mac likely because of [1386]

Compiler gives this error message

iterator_test.cc:121: error: ambiguous overload for 'operator==' in
'stride_ci == stride_i' ../yat/utility/StrideIterator.h:251: note:
candidates are: bool theplu::yat::utility::operator==(const
theplu::yat::utility::StrideIterator<__gnu_cxx::__normal_iterator<double*,
std::vector<double, std::allocator<double> > > >&, const
theplu::yat::utility::StrideIterator<__gnu_cxx::__normal_iterator<double*,
std::vector<double, std::allocator<double> > > >&)
../yat/utility/StrideIterator.h:251: note: bool
theplu::yat::utility::operator==(const
theplu::yat::utility::StrideIterator<__gnu_cxx::__normal_iterator<const
double*, std::vector<double, std::allocator<double> > > >&, const
theplu::yat::utility::StrideIterator<__gnu_cxx::__normal_iterator<const
double*, std::vector<double, std::allocator<double> > > >&)

comment:3 Changed 15 years ago by Peter

Priority: criticalmajor
Resolution: fixed
Status: reopenedclosed

fixed in [1390]

Note: See TracTickets for help on using tickets.