mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-29 15:34:08 +02:00
Removed unused code.
This commit is contained in:
parent
b4db293181
commit
d46f220737
@ -21,39 +21,6 @@ MSGPACK_API_VERSION_NAMESPACE(v1) {
|
|||||||
/// @endcond
|
/// @endcond
|
||||||
namespace type {
|
namespace type {
|
||||||
|
|
||||||
namespace detail {
|
|
||||||
template <int N, typename... Ts>
|
|
||||||
struct get;
|
|
||||||
|
|
||||||
template <int N, typename T, typename... Ts>
|
|
||||||
struct get<N, std::tuple<T, Ts...>>
|
|
||||||
{
|
|
||||||
using type = typename get<N - 1, std::tuple<Ts...>>::type;
|
|
||||||
};
|
|
||||||
|
|
||||||
template <typename T, typename... Ts>
|
|
||||||
struct get<0, std::tuple<T, Ts...>>
|
|
||||||
{
|
|
||||||
using type = T;
|
|
||||||
};
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
inline typename std::enable_if<
|
|
||||||
has_as<T>::value
|
|
||||||
>::type
|
|
||||||
unpack_impl(msgpack::object const& o, T& t) {
|
|
||||||
t = o.as<T>();
|
|
||||||
}
|
|
||||||
template <typename T>
|
|
||||||
inline typename std::enable_if<
|
|
||||||
!has_as<T>::value
|
|
||||||
>::type
|
|
||||||
unpack_impl(msgpack::object const& o, T& t) {
|
|
||||||
o.convert(t);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace detail
|
|
||||||
|
|
||||||
template <typename Tuple, std::size_t N>
|
template <typename Tuple, std::size_t N>
|
||||||
struct define_array_imp {
|
struct define_array_imp {
|
||||||
template <typename Packer>
|
template <typename Packer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user