usata-commits
[Top][All Lists]
Advanced

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

[Usata-commits] Changes to usata2/src/math/vector.hpp


From: Chong Kai Xiong
Subject: [Usata-commits] Changes to usata2/src/math/vector.hpp
Date: Tue, 04 Jan 2005 20:38:12 -0500

Index: usata2/src/math/vector.hpp
diff -u usata2/src/math/vector.hpp:1.9 usata2/src/math/vector.hpp:1.10
--- usata2/src/math/vector.hpp:1.9      Tue Jan  4 16:01:52 2005
+++ usata2/src/math/vector.hpp  Wed Jan  5 01:26:11 2005
@@ -10,7 +10,7 @@
 // included in the software distribution, or visit
 // http://www.fsf.org/licenses/gpl.html.
 //
-// $Id: vector.hpp,v 1.9 2005/01/04 16:01:52 Descender Exp $
+// $Id: vector.hpp,v 1.10 2005/01/05 01:26:11 Descender Exp $
 
 #ifndef USATA_MATH_VECTOR_HPP
 #define USATA_MATH_VECTOR_HPP
@@ -74,6 +74,12 @@
                                return v[index];
                        }
 
+                       const T&
+                       operator[] (int index) const
+                       {
+                               return v[index];
+                       }
+
                        //! \brief Output stream operator
                        friend std::ostream&
                        operator << (std::ostream& out, const Vector4& vector)




reply via email to

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