mirror of
https://github.com/google/benchmark.git
synced 2025-03-05 23:00:10 +08:00
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 <atomic>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <type_traits>
|
|
||||||
|
|
||||||
#include "arraysize.h"
|
#include "arraysize.h"
|
||||||
#include "check.h"
|
#include "check.h"
|
||||||
@ -64,11 +63,6 @@ public:
|
|||||||
|
|
||||||
static WallTimeImp& GetWallTimeImp() {
|
static WallTimeImp& GetWallTimeImp() {
|
||||||
static WallTimeImp imp;
|
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;
|
return imp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user