https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Follow g++ 4.3 advice w.r.t. ignored type qualifiers on function
return types.
* mln/util/tracked_ptr.hh
(mln::util::tracked_ptr<T>::operator->() const)
(mln::util::tracked_ptr<T>::operator->()):
Remove useless `const' qualifier on return type.
* mln/value/builtin/floatings.hh
(mln::trait::value_<float>::min)
(mln::trait::value_<float>::max)
(mln::trait::value_<float>::epsilon)
(mln::trait::value_<double>::min)
(mln::trait::value_<double>::max)
(mln::trait::value_<double>::epsilon):
Likewise.
util/tracked_ptr.hh | 8 ++++----
value/builtin/floatings.hh | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
Index: mln/util/tracked_ptr.hh
--- mln/util/tracked_ptr.hh (revision 2124)
+++ mln/util/tracked_ptr.hh (working copy)
@@ -67,13 +67,13 @@
**
** \invariant Pointer proxy exists.
*/
- const T*const operator->() const;
+ const T* operator->() const;
/*! \brief Mimics the behavior of op-> for a pointer in the mutable case.
**
** \invariant Pointer proxy exists.
*/
- T*const operator->();
+ T* operator->();
/// Ctor.
tracked_ptr();
@@ -127,7 +127,7 @@
** \invariant Pointer proxy exists.
*/
inline
- const T*const tracked_ptr<T>::operator->() const
+ const T* tracked_ptr<T>::operator->() const
{
mln_invariant(run_());
mln_precondition(ptr_ != 0);
@@ -140,7 +140,7 @@
** \invariant Pointer proxy exists.
*/
inline
- T*const tracked_ptr<T>::operator->()
+ T* tracked_ptr<T>::operator->()
{
mln_invariant(run_());
mln_precondition(ptr_ != 0);
Index: mln/value/builtin/floatings.hh
--- mln/value/builtin/floatings.hh (revision 2124)
+++ mln/value/builtin/floatings.hh (working copy)
@@ -74,17 +74,17 @@
typedef value::kind::data kind;
typedef value::quant::high quant;
- static const float min()
+ static float min()
{
static const float min_ = std::numeric_limits<float>::min();
return min_;
}
- static const float max()
+ static float max()
{
static const float max_ = std::numeric_limits<float>::max();
return max_;
}
- static const float epsilon()
+ static float epsilon()
{
static const float epsilon_ = std::numeric_limits<float>::epsilon();
return epsilon_;
@@ -105,17 +105,17 @@
typedef value::kind::data kind;
typedef value::quant::high quant;
- static const double min()
+ static double min()
{
static const double min_ = std::numeric_limits<double>::min();
return min_;
}
- static const double max()
+ static double max()
{
static const double max_ = std::numeric_limits<double>::max();
return max_;
}
- static const double epsilon()
+ static double epsilon()
{
static const double epsilon_ = std::numeric_limits<double>::epsilon();
return epsilon_;