contructors from braced list for permutations and polynomials

This commit is contained in:
2021-10-28 20:44:05 +02:00
parent d96531f340
commit 9c6ab037cf
5 changed files with 21 additions and 0 deletions

1
vec.h
View File

@@ -441,6 +441,7 @@ template<typename T>
class NRVec_from1 : public NRVec<T> {
public:
NRVec_from1(): NRVec<T>() {};
template<int SIZE> NRVec_from1(const T (&a)[SIZE]) : NRVec<T>(a) {};
explicit NRVec_from1(const int n): NRVec<T>(n) {};
NRVec_from1(const NRVec<T> &rhs): NRVec<T>(rhs) {};//!< be able to convert the parent class transparently to this
NRVec_from1(const T &a, const int n): NRVec<T>(a, n) {};