Skip to content

Commit

Permalink
concepts: require lib support to enable concepts
Browse files Browse the repository at this point in the history
For example when using clang + libc vs libstdc++.

Signed-off-by: Noah Watkins <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
dotnwat authored and avikivity committed Mar 9, 2021
1 parent 593406a commit 66ba7b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/seastar/util/concepts.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
*/
#pragma once

#if defined(__cpp_concepts) && __cpp_concepts >= 201907
#if defined(__cpp_concepts) && __cpp_concepts >= 201907 && \
defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 201907

#define SEASTAR_CONCEPT(x...) x
#define SEASTAR_NO_CONCEPT(x...)
Expand Down

0 comments on commit 66ba7b1

Please sign in to comment.