mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd::util: Narrow the coverage of the size() -> sizeof(T) template.
This commit is contained in:
parent
7d863091bb
commit
18ef10643b
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ size(const std::array<char, SIZE> &buf)
|
|||
}
|
||||
|
||||
template<class T>
|
||||
constexpr typename std::enable_if<std::is_pod<T>::value, size_t>::type
|
||||
constexpr typename std::enable_if<std::is_integral<T>::value, size_t>::type
|
||||
size(const T &val)
|
||||
{
|
||||
return sizeof(T);
|
||||
|
|
Loading…
Reference in a new issue