Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
cf40a0f1
Commit
cf40a0f1
authored
Oct 01, 2015
by
Eric
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #136 from efcs/remove-check
Remove std::is_trivially_destructible assertion. Fix issue #134.
parents
eeaec441
bcb933a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
walltime.cc
src/walltime.cc
+2
-8
No files found.
src/walltime.cc
View file @
cf40a0f1
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,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"
...
@@ -70,13 +69,8 @@ public:
...
@@ -70,13 +69,8 @@ public:
WallTime
Now
();
WallTime
Now
();
static
WallTimeImp
&
GetWallTimeImp
()
{
static
WallTimeImp
&
GetWallTimeImp
()
{
static
WallTimeImp
imp
;
static
WallTimeImp
*
imp
=
new
WallTimeImp
();
#if __cplusplus >= 201103L
return
*
imp
;
static_assert
(
std
::
is_trivially_destructible
<
WallTimeImp
>::
value
,
"WallTimeImp must be trivially destructible to prevent "
"issues with static destruction"
);
#endif
return
imp
;
}
}
private
:
private
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment