From c5bf68298f64644b4b276cbbfacd855e1b71806c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=BCske?= <torin@git.sch.bme.hu> Date: Sun, 3 May 2015 15:18:10 +0200 Subject: [PATCH] tesztelni kell a reszleges specializaciot --- main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.cpp b/main.cpp index c484ce8..59d3e19 100644 --- a/main.cpp +++ b/main.cpp @@ -22,16 +22,16 @@ public: friend container<T...> list(T&...args); template<int I> - typename std::enable_if<I==1>::type readhelper(std::vector<std::string>& s) - { + /* typename std::enable_if<I!=1>::type */ void readhelper(std::vector<std::string>& s) + { + readhelper<I-1>(s); std::istringstream is{s[I-1]}; is>>std::get<I-1>(tu); } - + template<int I> - typename std::enable_if<I!=1>::type readhelper(std::vector<std::string>& s) - { - readhelper<I-1>(s); + /*typename std::enable_if<I==1>::type */void readhelper<1>(std::vector<std::string>& s) + { std::istringstream is{s[I-1]}; is>>std::get<I-1>(tu); } -- GitLab