summaryrefslogtreecommitdiff
path: root/src/database/select_query.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/select_query.hpp')
-rw-r--r--src/database/select_query.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/database/select_query.hpp b/src/database/select_query.hpp
index d0c1d59..93d69ed 100644
--- a/src/database/select_query.hpp
+++ b/src/database/select_query.hpp
@@ -53,11 +53,11 @@ struct SelectQuery: public Query
Query("SELECT"),
table_name(table_name)
{
- this->insert_col_name<0>();
+ this->insert_col_name();
this->body += " from " + this->table_name;
}
- template <std::size_t N>
+ template <std::size_t N=0>
typename std::enable_if<N < sizeof...(T), void>::type
insert_col_name()
{
@@ -71,7 +71,7 @@ struct SelectQuery: public Query
this->insert_col_name<N+1>();
}
- template <std::size_t N>
+ template <std::size_t N=0>
typename std::enable_if<N == sizeof...(T), void>::type
insert_col_name()
{}