diff --git a/vec.h b/vec.h index d140090..5c90867 100644 --- a/vec.h +++ b/vec.h @@ -530,6 +530,7 @@ public: NRVec_from1(const NRVec &rhs): NRVec(rhs) {};//!< be able to convert the parent class transparently to this NRVec_from1(const T &a, const int n): NRVec(a, n) {}; NRVec_from1(const T *a, const int n): NRVec(a, n) {}; + explicit NRVec_from1(const std::list l) : NRVec(l) {}; inline const T& operator[] (const int i) const; inline T& operator[] (const int i); };