Skip to content

Commit ce17186

Browse files
committed
Ready for release 1.1-C++23
1 parent 106cc33 commit ce17186

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
## Contents
44

5-
All of the source Markdown pages for the Modern C++ Tutorial on https://learnmoderncpp.com/ plus complete, working programs from the course text.
5+
All of the source Markdown pages for the Modern C++ Tutorial on https://learnmoderncpp.com/ plus complete, working programs machine-extracted from the course text.
6+
7+
**Note:** Some Chapters have had significant changes made to update them to C++23, and not all programs compile successfully yet. In particular, use of `std::println()` with `import std;` does not compile. In case of issues with your compiler please see the Releases page for the C++20 version of the Tutorial.
68

79
The "headers" subdirectory contains C++ programs with legacy header `#includes`, whilst the "modules" subdirectory contains the same programs using the `import` keyword instead. See https://learnmoderncpp.com/2020/09/05/where-are-c-modules/ for more details about C++ compilers which have support for modules.
810

911
The "scripts" subdirectory contains a C++ program which extracts all programs from the Markdown source to the above two folders.
1012

1113
## Compiling under Windows
1214

13-
Most programs compile successfully under Windows with Visual Studio 2022 (v17.5 or later), some of the modules versions do not currently compile.
15+
Most programs compile successfully under Windows with Visual Studio 2022 (v17.8 or later), some of the modules versions (as noted above) do not currently compile.
1416

1517
The supplied batch scripts `build-vs2022-headers.bat` and `build-vs2022-modules.bat` can be used to compile all of the programs within a Visual Studio command prompt, simply run:
1618

@@ -20,7 +22,7 @@ C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvar
2022

2123
or similar in a command window, or create a desktop link, and then run either of the build scripts.
2224

23-
Alternatively, to compile individual programs from within a Visual Studio command prompt run either (modules):
25+
Alternatively, to compile individual programs from within a Visual Studio command prompt, run either (modules):
2426

2527
```
2628
cl /EHsc /std:c++latest /MTd 00-example.cpp
@@ -39,13 +41,13 @@ substituting the correct file for `00-example.cpp` in either case. Note that the
3941
To compile individual programs in the "headers" subdirectory under Linux, use:
4042

4143
```
42-
g++ -std=c++20 -o 00-example 00-example.cpp
44+
g++ -std=c++23 -o 00-example 00-example.cpp
4345
```
4446

4547
or:
4648

4749
```
48-
clang++ -std=c++20 -o 00-example 00-example.cpp
50+
clang++ -std=c++23 -o 00-example 00-example.cpp
4951
```
5052

5153
substituting both occurrencies of `00-example` with the correct file name.

0 commit comments

Comments
 (0)