mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Add argumentless overload for get_sql_name()
Comes handy with template metaprogramming.
This commit is contained in:
parent
a710e8bd89
commit
fc23782369
@ -130,9 +130,15 @@ namespace sqlpp
|
||||
return {c};
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
constexpr const char* get_sql_name(const T& /*unused*/)
|
||||
{
|
||||
return name_of<T>::template char_ptr<void>();
|
||||
template <typename T>
|
||||
constexpr const char* get_sql_name()
|
||||
{
|
||||
return name_of<T>::template char_ptr<void>();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
constexpr const char* get_sql_name(const T& /*unused*/)
|
||||
{
|
||||
return get_sql_name<T>();
|
||||
}
|
||||
} // namespace sqlpp
|
||||
|
Loading…
Reference in New Issue
Block a user