From 4c493443be9c5769d5820e74c1f1794567c7d1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Tue, 29 Sep 2015 10:49:46 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@157 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/math/pimathvector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math/pimathvector.h b/src/math/pimathvector.h index 3841b7bf..53828e94 100644 --- a/src/math/pimathvector.h +++ b/src/math/pimathvector.h @@ -108,7 +108,7 @@ public: return f;} template /// vector {Size, Type} to vector {Size1, Type1} - PIMathVectorT turnTo() {PIMathVectorT tv; uint sz = piMin(Size, Size1); for (uint i = 0; i < sz; ++i) tv[i] = c[i]; return tv;} + PIMathVectorT turnTo() const {PIMathVectorT tv; uint sz = piMin(Size, Size1); for (uint i = 0; i < sz; ++i) tv[i] = c[i]; return tv;} private: void resize(const Type & new_value = Type()) {for (int i = 0; i < Size; ++i) c[i] = new_value;} @@ -210,7 +210,7 @@ public: return f;} template - PIMathVector turnTo(uint size) {PIMathVector tv; uint sz = piMin(size_, size); for (uint i = 0; i < sz; ++i) tv[i] = c[i]; return tv;} + PIMathVector turnTo(uint size) const {PIMathVector tv; uint sz = piMin(size_, size); for (uint i = 0; i < sz; ++i) tv[i] = c[i]; return tv;} private: uint size_;