[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10092 - openbts/branches/developers/dburgess00/smswor
From: |
dburgess00 |
Subject: |
[Commit-gnuradio] r10092 - openbts/branches/developers/dburgess00/smswork/CommonLibs |
Date: |
Sat, 29 Nov 2008 20:58:27 -0700 (MST) |
Author: dburgess00
Date: 2008-11-29 20:58:26 -0700 (Sat, 29 Nov 2008)
New Revision: 10092
Modified:
openbts/branches/developers/dburgess00/smswork/CommonLibs/Vector.h
Log:
Vector::segmentCopyTo should be const.
Modified: openbts/branches/developers/dburgess00/smswork/CommonLibs/Vector.h
===================================================================
--- openbts/branches/developers/dburgess00/smswork/CommonLibs/Vector.h
2008-11-30 02:58:32 UTC (rev 10091)
+++ openbts/branches/developers/dburgess00/smswork/CommonLibs/Vector.h
2008-11-30 03:58:26 UTC (rev 10092)
@@ -199,9 +199,9 @@
@param start The start point in this vector.
@param span The number of elements to copy.
*/
- void segmentCopyTo(Vector<T>& other, size_t start, size_t span)
+ void segmentCopyTo(Vector<T>& other, size_t start, size_t span) const
{
- T* base = mStart + start;
+ const T* base = mStart + start;
assert(base+span<=mEnd);
assert(other.mStart+span<=other.mEnd);
memcpy(other.mStart,base,span*sizeof(T));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10092 - openbts/branches/developers/dburgess00/smswork/CommonLibs,
dburgess00 <=