diff --git a/contfrac.h b/contfrac.h index e463121..c8ee819 100644 --- a/contfrac.h +++ b/contfrac.h @@ -115,6 +115,7 @@ private: int size() const; //prevent confusion with vector size public: ContFrac(): NRVec() {}; + explicit ContFrac(const std::list &x) : NRVec(x) {}; template ContFrac(const T (&a)[SIZE]) : NRVec(a) {}; ContFrac(const NRVec &v) : NRVec(v) {}; //allow implicit conversion from NRVec ContFrac(const int n) : NRVec(n+1) {};