mirror of https://github.com/google/benchmark.git
Remove std::is_trivially_destructible assertion because the trait may not be provided by the STL.
This commit is contained in:
parent
47c304536e
commit
a69f566e0a
|
@ -24,7 +24,6 @@
|
|||
#include <atomic>
|
||||
#include <chrono>
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
|
||||
#include "arraysize.h"
|
||||
#include "check.h"
|
||||
|
@ -64,11 +63,6 @@ public:
|
|||
|
||||
static WallTimeImp& GetWallTimeImp() {
|
||||
static WallTimeImp imp;
|
||||
#if __cplusplus >= 201103L
|
||||
static_assert(std::is_trivially_destructible<WallTimeImp>::value,
|
||||
"WallTimeImp must be trivially destructible to prevent "
|
||||
"issues with static destruction");
|
||||
#endif
|
||||
return imp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue