Opened 12 years ago

Closed 12 years ago

#488 closed defect (fixed)

Container2DIterator::dereference returns reference to temporary

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

Description

I have a:

theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup
                                          , double, const double&>

and get the following compiler warning:

/usr/local/include/yat/utility/Container2DIterator.h:92: warning: returning reference to temporary

Change History (1)

comment:1 Changed 12 years ago by Peter

Resolution: fixed
Status: newclosed

(In [1788]) Changed MatrixLookup::operator() to return const double& rather than double. Fixes #488

Note: See TracTickets for help on using tickets.