Skip to content

Commit

Permalink
docs: import std; row added to the "C++ compiler support" table
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jul 16, 2024
1 parent 27bd269 commit 698acca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/getting_started/cpp_compiler_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ C++ feature:
| **Minimum support** | 20 | 12 | 16 | 15 | None |
| **`std::format`** | 20 | 13 | 17 | None | None |
| **C++ modules** | 20 | None | 17 | None | None |
| **`import std;`** | 23 | None | 18 | None | None |
| **Static `constexpr` variables in `constexpr` functions** | 23 | 13 | 17 | None | None |
| **Explicit `this` parameter** | 23 | 14 | 18 | None | None |

Expand Down Expand Up @@ -62,6 +63,15 @@ C++ feature:
[CMake's documentation](https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html).


## `import std;`

- If enabled, the library will obtain all the definitions from the `std` namespace via
`import std;` instead of the "old-style" header includes.
- Related build options:
- Conan: [import_std](installation_and_usage.md#import_std)
- CMake: [MP_UNITS_BUILD_IMPORT_STD](installation_and_usage.md#MP_UNITS_BUILD_IMPORT_STD)


## Static `constexpr` variables in `constexpr` functions

- Allows returning `std::string_view` from the
Expand Down

0 comments on commit 698acca

Please sign in to comment.