[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN/internal vector.hh
From: |
Edward Rosten |
Subject: |
[Toon-members] TooN/internal vector.hh |
Date: |
Wed, 09 Jun 2010 14:21:27 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Edward Rosten <edrosten> 10/06/09 14:21:27
Modified files:
internal : vector.hh
Log message:
Add missing const.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/vector.hh?cvsroot=toon&r1=1.55&r2=1.56
Patches:
Index: vector.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/vector.hh,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- vector.hh 1 Feb 2010 19:34:08 -0000 1.55
+++ vector.hh 9 Jun 2010 14:21:27 -0000 1.56
@@ -332,7 +332,7 @@
/// Test for equality with another vector
template<int Size2, class Precision2, class Base2>
- bool operator==(const Vector<Size2, Precision2, Base2>& rhs) {
+ bool operator==(const Vector<Size2, Precision2, Base2>& rhs) const {
SizeMismatch<Size,Size2>::test(size(),rhs.size());
for(int i=0; i<size(); i++)
if((*this)[i]!=rhs[i])
@@ -342,7 +342,7 @@
/// Test for inequality with another vector
template<int Size2, class Precision2, class Base2>
- bool operator!=(const Vector<Size2, Precision2, Base2>& rhs) {
+ bool operator!=(const Vector<Size2, Precision2, Base2>& rhs) const {
SizeMismatch<Size,Size2>::test(size(),rhs.size());
for(int i=0; i<size(); i++)
if((*this)[i]!=rhs[i])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Toon-members] TooN/internal vector.hh,
Edward Rosten <=