diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-04-10 19:52:28 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-04-10 19:52:28 +0200 |
commit | 16e5ab04800f86002e9bd3f904ec60cf63238f91 (patch) | |
tree | 6ba4b3d05c11dfc1371f577889e93a2a9a9c77e3 /src/development/c++/Makefile | |
parent | 7f16e3e61379eb8d926bb35660428b6aacdd96d3 (diff) | |
download | notes-16e5ab04800f86002e9bd3f904ec60cf63238f91.tar.gz notes-16e5ab04800f86002e9bd3f904ec60cf63238f91.zip |
c++: add concept (c++20) example
Diffstat (limited to 'src/development/c++/Makefile')
-rw-r--r-- | src/development/c++/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
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) |