fixed clear() for nested types

This commit is contained in:
2021-05-24 18:45:58 +02:00
parent 222c1cfb8c
commit 6135a4b595
5 changed files with 9 additions and 9 deletions

2
vec.h
View File

@@ -155,7 +155,7 @@ public:
void copyonwrite(bool detachonly=false);
//! purge this vector
void clear() { copyonwrite(true); LA_traits<T>::clear(v, nn); };
void clear() { copyonwrite(LA_traits<T>::is_plaindata()); LA_traits<T>::clear(v, nn); };
//! assignment operator assigns given vector
NRVec& operator=(const NRVec &rhs);