Skip to content

Commit

Permalink
Check if TimedAsyncEvent constructor can be constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
daboehme committed Nov 26, 2024
1 parent 9895b2f commit b8e33ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/caliper/AsyncEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ class TimedAsyncEvent

public:

#if __cplusplus >= 201402L
constexpr TimedAsyncEvent() : end_tree_node_ { nullptr } { }
#else
TimedAsyncEvent() : end_tree_node_ { nullptr } { }
#endif

void end();

Expand Down

0 comments on commit b8e33ed

Please sign in to comment.