cleanup-2008 2037: Minor cleaning.

https://svn.lrde.epita.fr/svn/oln/branches/cleanup-2008/milena Index: ChangeLog from Thierry Geraud <thierry.geraud@lrde.epita.fr> Minor cleaning. * mln/core/concept/proxy.hh (todo): New. * mln/core/concept/accumulator.hh: Better doc. (operator): Update check. accumulator.hh | 7 +++++-- proxy.hh | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) Index: mln/core/concept/proxy.hh --- mln/core/concept/proxy.hh (revision 2036) +++ mln/core/concept/proxy.hh (working copy) @@ -33,6 +33,8 @@ * \brief Definition of the concept of mln::Proxy. * * \todo preinc and predec are not tested; post-like ops are not handled. + * + * \todo add op=(Literal) when possible, so add a constness property. */ # include <mln/core/concept/object.hh> Index: mln/core/concept/accumulator.hh --- mln/core/concept/accumulator.hh (revision 2036) +++ mln/core/concept/accumulator.hh (working copy) @@ -34,6 +34,7 @@ */ # include <mln/core/concept/proxy.hh> +# include <mln/metal/unqualif.hh> namespace mln @@ -71,7 +72,7 @@ void take(const E& other); result to_result() const; - operator result_() const; + operator mlc_unqualif(result) const; */ // Default impl. @@ -101,7 +102,9 @@ result (E::*m4)() const = & E::to_result; m4 = 0; - result (E::*m5)() const = & E::operator result; + + typedef mlc_unqualif(result) result_; + result_ (E::*m5)() const = & E::operator result_; m5 = 0; }
participants (1)
-
Thierry Geraud