proxygen
folly::detail::CheckOverflowToDuration< true > Struct Template Reference

#include <Conv.h>

Static Public Member Functions

template<typename Tgt , typename SubsecondRatio , typename Seconds , typename Subseconds >
static ConversionCode check (Seconds, Subseconds)
 

Detailed Description

template<>
struct folly::detail::CheckOverflowToDuration< true >

Definition at line 334 of file Conv.h.

Member Function Documentation

template<typename Tgt , typename SubsecondRatio , typename Seconds , typename Subseconds >
static ConversionCode folly::detail::CheckOverflowToDuration< true >::check ( Seconds  ,
Subseconds   
)
inlinestatic

Definition at line 340 of file Conv.h.

References max, folly::SUCCESS, and value.

342  {
343  static_assert(
345  static_assert(
346  SubsecondRatio::num == 1, "subsecond numerator should always be 1");
347 
348  // We expect floating point types to have much a wider representable range
349  // than integer types, so we don't bother actually checking the input
350  // integer value here.
351  static_assert(
354  "unusually limited floating point type");
355  static_assert(
356  std::numeric_limits<typename Tgt::rep>::lowest() <=
357  std::numeric_limits<Seconds>::lowest(),
358  "unusually limited floating point type");
359 
361  }
LogLevel max
Definition: LogLevel.cpp:31
static const char *const value
Definition: Conv.cpp:50

The documentation for this struct was generated from the following file: