You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lines 166 to 169 in irange.hpp:
166 reference dereference() const
167 {
168 return m_first + (m_step * m_step_size);
169 }
This looks like it is returning a reference to a temporary. Undefined behaviour?
The text was updated successfully, but these errors were encountered:
On closer inspection it seems to be OK as reference and value_type are both defined the same, i.e. Integer. However, it would be clearer if "reference" was replaced with "value_type" as the return type of the function.
Lines 166 to 169 in irange.hpp:
166 reference dereference() const
167 {
168 return m_first + (m_step * m_step_size);
169 }
This looks like it is returning a reference to a temporary. Undefined behaviour?
The text was updated successfully, but these errors were encountered: