don't use deprecated PVValueArray<T>::get()

This commit is contained in:
Michael Davidsaver
2013-07-25 17:54:46 -04:00
parent e96b447e37
commit 0860f8e6f9
4 changed files with 18 additions and 27 deletions

View File

@@ -109,7 +109,8 @@ bool compareScalar(const PVScalarValue<T>* left, const PVScalarValue<T>* right)
template<typename T>
bool compareArray(const PVValueArray<T>* left, const PVValueArray<T>* right)
{
return std::equal(left->get(), left->get()+left->getLength(), right->get());
typename PVValueArray<T>::const_svector lhs(left->view()), rhs(right->view());
return std::equal(lhs.begin(), lhs.end(), rhs.begin());
}
// partially typed comparisons