diff --git a/include/sqlpp11/functions.h b/include/sqlpp11/functions.h index acf0e680..eadd33c6 100644 --- a/include/sqlpp11/functions.h +++ b/include/sqlpp11/functions.h @@ -130,9 +130,15 @@ namespace sqlpp return {c}; } - template - constexpr const char* get_sql_name(const T& /*unused*/) - { - return name_of::template char_ptr(); + template + constexpr const char* get_sql_name() + { + return name_of::template char_ptr(); + } + + template + constexpr const char* get_sql_name(const T& /*unused*/) + { + return get_sql_name(); } } // namespace sqlpp