toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] TooN/internal vector.hh


From: Gerhard Reitmayr
Subject: [Toon-members] TooN/internal vector.hh
Date: Fri, 27 Mar 2009 11:39:50 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Gerhard Reitmayr <gerhard>      09/03/27 11:39:50

Modified files:
        internal       : vector.hh 

Log message:
        fix for vector assignment from operator

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/vector.hh?cvsroot=toon&r1=1.25&r2=1.26

Patches:
Index: vector.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/vector.hh,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- vector.hh   26 Mar 2009 21:22:13 -0000      1.25
+++ vector.hh   27 Mar 2009 11:39:50 -0000      1.26
@@ -52,8 +52,9 @@
 
        // assignment from a 0-ary operator
        template <class Op>
-       inline operator=(const Operator<Op>&){
+       inline Vector & operator=(const Operator<Op>&){
                Op::eval(*this);
+               return *this;
        }
 
        // operator = from copy




reply via email to

[Prev in Thread] Current Thread [Next in Thread]