[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, 18 Feb 2009 16:49:09 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Edward Rosten <edrosten> 09/02/18 16:49:09
Modified files:
internal : vector.hh
Log message:
Removed copy constructor: the default is now sufficient.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/vector.hh?cvsroot=toon&r1=1.15&r2=1.16
Patches:
Index: vector.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/vector.hh,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- vector.hh 18 Feb 2009 16:46:59 -0000 1.15
+++ vector.hh 18 Feb 2009 16:49:09 -0000 1.16
@@ -26,16 +26,14 @@
Op::eval(*this,lhs,rhs);
}
- // copy constructor listed explicitly
- // this is a very special case. Copy construction
- // goes all the way down to the bottom. GenericVBase has no
- // idea how to copy itself. However, the underlying allocator objects do.
- // In the case of static sized objects, C++ automatically copies the data.
- // For slice objects, C++ copies all parts (pointer and size), which is
correct.
- // For dynamically sized non-slice objects the copying has to be done by
hand.
- inline Vector(const Vector&from)
- : Base(from){
- }
+ // Copy construction is a very special case. Copy construction goes all the
+ // way down to the bottom. GenericVBase has no idea how to copy itself.
+ // However, the underlying allocator objects do. In the case of static sized
+ // objects, C++ automatically copies the data. For slice objects, C++ copies
+ // all parts (pointer and size), which is correct. For dynamically sized
+ // non-slice objects the copying has to be done by hand.
+
+ // inline Vector(const Vector&from);
// constructor from arbitrary vector
template<int Size2, typename Precision2, typename Base2>