10 #ifndef MSGPACK_V1_CHECK_CONTAINER_SIZE_HPP
11 #define MSGPACK_V1_CHECK_CONTAINER_SIZE_HPP
24 :std::runtime_error(msg) {}
25 #if !defined(MSGPACK_USE_CPP03)
27 std::runtime_error(msg) {}
33 template <std::
size_t N>
42 template <std::
size_t N>
56 detail::check_container_size<sizeof(T)>(
static_cast<std::size_t
>(
size));
57 return static_cast<uint32_t
>(
size);
void check_container_size(std::size_t size)
Definition: check_container_size.hpp:34
void check_container_size_for_ext(std::size_t size)
Definition: check_container_size.hpp:43
void check_container_size< 4 >(std::size_t)
Definition: check_container_size.hpp:39
void check_container_size_for_ext< 4 >(std::size_t size)
Definition: check_container_size.hpp:48
std::size_t size(T const &t)
Definition: size_equal_only.hpp:24
Definition: adaptor_base.hpp:15
uint32_t checked_get_container_size(T size)
Definition: check_container_size.hpp:55
Definition: check_container_size.hpp:22
container_size_overflow(const std::string &msg)
Definition: check_container_size.hpp:23
container_size_overflow(const char *msg)
Definition: check_container_size.hpp:26
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66