0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

ircd::util: Narrow the coverage of the size() -> sizeof(T) template.

This commit is contained in:
Jason Volk 2017-12-22 17:02:03 -07:00
parent 7d863091bb
commit 18ef10643b

View file

@ -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);