mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
try vc2015 countof ut
This commit is contained in:
parent
5538a709c9
commit
da22d0f7b2
@ -48,8 +48,8 @@ template <typename C, bool = countof_trait_has_size<C>::value
|
||||
, bool = countof_trait_has_Size<C>::value>
|
||||
struct countof_trait;
|
||||
|
||||
template <typename C>
|
||||
struct countof_trait<C, true, false> {
|
||||
template <typename C, bool B>
|
||||
struct countof_trait<C, true, B> {
|
||||
constexpr static auto countof(C const &c) noexcept(noexcept(c.size())) {
|
||||
return c.size();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user