From 16e5ab04800f86002e9bd3f904ec60cf63238f91 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 10 Apr 2024 19:52:28 +0200 Subject: c++: add concept (c++20) example --- src/development/c++/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/development/c++/Makefile') diff --git a/src/development/c++/Makefile b/src/development/c++/Makefile index 622bfd3..2c53e47 100644 --- a/src/development/c++/Makefile +++ b/src/development/c++/Makefile @@ -1,4 +1,4 @@ -SRC = concepts-11.cc meta.cc meta2.cc meta4.cc tmpl-pair.cc tmpl-void_t.cc fwd.cc fwd-perfect.cc +SRC = concepts-11.cc concepts-20.cc meta.cc meta2.cc meta4.cc tmpl-pair.cc tmpl-void_t.cc fwd.cc fwd-perfect.cc BIN = $(SRC:.cc=) all: $(BIN) @@ -6,6 +6,9 @@ all: $(BIN) %: %.cc $(CXX) -o $* $^ -std=c++17 -g -fsanitize=address -fsanitize=undefined -fsanitize=leak +concepts-20: concepts-20.cc + $(CXX) -fsyntax-only $^ -std=c++20 + fmt: clang-format -i $(SRC) -- cgit v1.2.3