Use is_arithmetic<T>::value for C++11 compatibility
Summary:
Some xplat build platforms only support C++11, where is_arithmetic_v is not a
thing yet.
MODIFY
quic/common/WindowedCounter.h
quic/common/WindowedCounter.h
@@ -34,7 +34,8 @@ template <
typename TimeT,
typename TimeDeltaT,
typename = std::enable_if_t<
- std::is_arithmetic_v<TimeT> && std::is_arithmetic_v<TimeDeltaT>>>
+ std::is_arithmetic<TimeT>::value &&
+ std::is_arithmetic<TimeDeltaT>::value>>
class WindowedCounter {
public:
/**

Use is_arithmetic<T>::value for C++11 compatibility

Summary:
Some xplat build platforms only support C++11, where is_arithmetic_v is not a
thing yet.

Reviewed By: avasylev

Differential Revision: D23736168

fbshipit-source-id: eef246adbefe110e1c71caa58bf0b0ccfb2da7b5