mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Make implicit array to pointer decay explicit
This commit is contained in:
parent
6f39293a69
commit
b27406a87e
@ -54,16 +54,16 @@ namespace sqlpp
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <std::size_t N, const char(s)[N], typename T>
|
template <std::size_t N, const char* s, typename T>
|
||||||
struct make_char_sequence_impl;
|
struct make_char_sequence_impl;
|
||||||
|
|
||||||
template <std::size_t N, const char(s)[N], std::size_t... i>
|
template <std::size_t N, const char* s, std::size_t... i>
|
||||||
struct make_char_sequence_impl<N, s, sqlpp::detail::index_sequence<i...>>
|
struct make_char_sequence_impl<N, s, sqlpp::detail::index_sequence<i...>>
|
||||||
{
|
{
|
||||||
using type = char_sequence<s[i]...>;
|
using type = char_sequence<s[i]...>;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <std::size_t N, const char(Input)[N]>
|
template <std::size_t N, const char* Input>
|
||||||
using make_char_sequence =
|
using make_char_sequence =
|
||||||
typename make_char_sequence_impl<N, Input, sqlpp::detail::make_index_sequence<N - 1>>::type;
|
typename make_char_sequence_impl<N, Input, sqlpp::detail::make_index_sequence<N - 1>>::type;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user