From 3a163ae81f26d1e17aa01d1d1938f80288e39df4 Mon Sep 17 00:00:00 2001 From: Jiri Pittner Date: Thu, 9 Jun 2022 20:55:10 +0200 Subject: [PATCH] ContFrac constructor from list --- contfrac.h | 1 + 1 file changed, 1 insertion(+) 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) {};