[PPL-devel] [GIT] ppl/ppl(master): CO_Tree: fix compilation when Coefficient_traits:: const_reference is not `const Coefficient&'.

Marco Poletti poletti.marco at gmail.com
Fri Sep 3 21:09:00 CEST 2010


Module: ppl/ppl
Branch: master
Commit: ebfce787809a33b59085a46cd478618fe73d505f
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=ebfce787809a33b59085a46cd478618fe73d505f

Author: Marco Poletti <poletti.marco at gmail.com>
Date:   Fri Sep  3 21:07:03 2010 +0200

CO_Tree: fix compilation when Coefficient_traits::const_reference is not `const Coefficient&'.

---

 src/CO_Tree.defs.hh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CO_Tree.defs.hh b/src/CO_Tree.defs.hh
index a3f1f91..95332f1 100644
--- a/src/CO_Tree.defs.hh
+++ b/src/CO_Tree.defs.hh
@@ -389,7 +389,7 @@ public:
     data_type& operator*();
 
     //! Returns the current element.
-    const data_type& operator*() const;
+    Coefficient_traits::const_reference operator*() const;
 
     //! Returns the index of the element pointed to by \c *this.
     /*!
@@ -1376,7 +1376,7 @@ public:
   data_type& operator*();
 
   //! Returns the key and value of the current node.
-  const data_type& operator*() const;
+  Coefficient_traits::const_reference operator*() const;
 
   //! Returns a reference to the index of the element pointed to by \c *this.
   /*!




More information about the PPL-devel mailing list