Skip to content

Commit

Permalink
update documentation to use c++20
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 2, 2024
1 parent d3f55e0 commit 5849d6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Linux or macOS users might follow the following instructions if they have a rece
```
2. Compile
```
c++ -std=c++17 -o demo demo.cpp
c++ -std=c++20 -o demo demo.cpp
```
3. `./demo`
Expand Down Expand Up @@ -279,7 +279,7 @@ E.g., if you grab our single-header C++ files (`ada.cpp` and `ada.h`), as well a
you can often compile a C program (`demo.c`) as follows under Linux/macOS systems:
```
c++ -c ada.cpp -std=c++17
c++ -c ada.cpp -std=c++20
cc -c demo.c
c++ demo.o ada.o -o cdemo
./cdemo
Expand Down
6 changes: 3 additions & 3 deletions singleheader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ This will create two new files (ada.h and ada.cpp).
You can then compile the demo file as follows:

```
c++ -std=c++17 -c demo.cpp
c++ -std=c++20 -c demo.cpp
```

It will produce a binary file (e.g., demo.o) which contains ada.cpp.

```
c++ -std=c++17 -o demo demo.cpp
c++ -std=c++20 -o demo demo.cpp
./demo
```

Expand All @@ -29,7 +29,7 @@ You may build and link using CMake (--target demo), because CMake can configure
You may also build a C executable.

```
c++ -c ada.cpp -std=c++17
c++ -c ada.cpp -std=c++20
cc -c demo.c
c++ demo.o ada.o -o cdemo
./cdemo
Expand Down

0 comments on commit 5849d6a

Please sign in to comment.