0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Added inline keyword to several free non-template functions

This commit is contained in:
rbock 2014-08-11 19:11:15 +02:00
parent 9870d06652
commit 34e64b50d6
5 changed files with 9 additions and 9 deletions

View File

@ -91,11 +91,11 @@ namespace sqlpp
return { s }; return { s };
} }
template<typename Expression, typename Context> template<typename Expression, typename Db>
auto flatten(const Expression& exp, const Context& context) -> verbatim_t<value_type_of<Expression>> auto flatten(const Expression& exp, Db& db) -> verbatim_t<value_type_of<Expression>>
{ {
static_assert(not make_parameter_list_t<Expression>::type::size::value, "parameters not supported in flattened expressions"); static_assert(not make_parameter_list_t<Expression>::size::value, "parameters are not allowed in flattened expressions");
context.clear(); auto context = db.get_serializer_context();
serialize(exp, context); serialize(exp, context);
return { context.str() }; return { context.str() };
} }
@ -164,7 +164,7 @@ namespace sqlpp
template<typename T> template<typename T>
constexpr const char* get_sql_name(const T&) constexpr const char* get_sql_name(const T&)
{ {
return T::type::_name_t::_get_name(); return T::_name_t::_get_name();
} }

View File

@ -94,7 +94,7 @@ namespace sqlpp
no_into_t, no_into_t,
no_insert_value_list_t>; no_insert_value_list_t>;
auto insert() inline auto insert()
-> blank_insert_t<void> -> blank_insert_t<void>
{ {
return { blank_insert_t<void>() }; return { blank_insert_t<void>() };

View File

@ -98,7 +98,7 @@ namespace sqlpp
no_where_t<true> no_where_t<true>
>; >;
auto remove() inline auto remove()
-> blank_remove_t<void> -> blank_remove_t<void>
{ {
return { blank_remove_t<void>() }; return { blank_remove_t<void>() };

View File

@ -79,7 +79,7 @@ namespace sqlpp
no_offset_t>; no_offset_t>;
blank_select_t<void> select() // FIXME: These should be constexpr inline blank_select_t<void> select() // FIXME: These should be constexpr
{ {
return { }; return { };
} }

View File

@ -82,7 +82,7 @@ namespace sqlpp
}; };
verbatim_table_t verbatim_table(std::string name) inline verbatim_table_t verbatim_table(std::string name)
{ {
return { name }; return { name };
} }