[Boost-bugs] [ boost-Bugs-1521741 ] Constness in iterator_facade::operator->

Bugs item #1521741, was opened at 2006-07-13 11:21 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1521741&group_id=7586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: iterator Group: None Status: Open Resolution: None Priority: 5 Submitted By: Richard Smith (ras52) Assigned to: David Abrahams (david_abrahams) Summary: Constness in iterator_facade::operator-> Initial Comment: The C++ standard states (table 72) that for an input iterator, a->m is equivalent to (*a).m. If operator* returns a value_type by non-const value, it is possible to call a non-const member function on the temporary returned from the function. However, the operator_arrow_proxy class acts as a proxy to T const* rather than T*, this that you can do (*i).non_const_method(); but not i->non_const_method(); for certain input iterators. See discussion here: http://lists.boost.org/Archives/boost/2006/07/107713.php http://lists.boost.org/Archives/boost/2006/07/107740.php http://lists.boost.org/Archives/boost/2006/07/107756.php ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1521741&group_id=7586 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net