mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 09:16:46 +08:00
test cases failed
This commit is contained in:
parent
0ef1d27521
commit
d36c3949ce
@ -30,7 +30,7 @@ struct chunk_mapping_policy {
|
|||||||
};
|
};
|
||||||
|
|
||||||
constexpr static std::size_t classify(std::size_t size) {
|
constexpr static std::size_t classify(std::size_t size) {
|
||||||
return (size <= base_size) ? 0 : classes_size;
|
return (size <= base_size) ? 0 : static_cast<std::size_t>(classes_size);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ using chunk_variable_alloc = variable_alloc<detail::chunk_mapping_policy::base_s
|
|||||||
|
|
||||||
template <std::size_t Size>
|
template <std::size_t Size>
|
||||||
using static_async_fixed =
|
using static_async_fixed =
|
||||||
static_wrapper<async_wrapper<fixed_alloc<Size, chunk_variable_alloc>, detail::chunk_alloc_recoverer>>;
|
static_wrapper<async_wrapper<fixed_alloc<Size/*, chunk_variable_alloc*/>/*, detail::chunk_alloc_recoverer*/>>;
|
||||||
|
|
||||||
using async_pool_alloc = variable_wrapper<static_async_fixed>;
|
using async_pool_alloc = variable_wrapper<static_async_fixed>;
|
||||||
//using async_pool_alloc = static_wrapper<async_wrapper<chunk_variable_alloc, detail::chunk_alloc_recoverer>>;
|
//using async_pool_alloc = static_wrapper<async_wrapper<chunk_variable_alloc, detail::chunk_alloc_recoverer>>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user