Skip to content

Commit

Permalink
Fixed g++ < 5.0 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
SChernykh committed Nov 4, 2022
1 parent 7f87d77 commit 4213dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/robin_hood.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static Counts& counts() {

// workaround missing "is_trivially_copyable" in g++ < 5.0
// See https://stackoverflow.com/a/31798726/48181
#if defined(__GNUC__) && __GNUC__ < 5
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 5
# define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
#else
# define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) std::is_trivially_copyable<__VA_ARGS__>::value
Expand Down

0 comments on commit 4213dd1

Please sign in to comment.