Skip to content

Commit

Permalink
folly: Check if __cpp_concepts is defined before checking its value
Browse files Browse the repository at this point in the history
Summary: This diff updates a check against __cpp_concepts to first make sure it is defined.

Reviewed By: Gownta

Differential Revision: D67203697

fbshipit-source-id: ae5bd07a5f7945645503cc1ac15bdc5b602b61c0
  • Loading branch information
Eric Griffith authored and facebook-github-bot committed Dec 14, 2024
1 parent 889f0ad commit 3395281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folly/container/detail/F14Table.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class F14HashToken final {
};
#endif

#if __cpp_concepts && __has_include(<concepts>)
#if defined(__cpp_concepts) && __cpp_concepts && __has_include(<concepts>)
static_assert(std::regular<F14HashToken>);
#endif

Expand Down

0 comments on commit 3395281

Please sign in to comment.