Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scivision/cpp23-examples
Example C++23 and C++20 syntax and tests of compilers and CMake
https://github.com/scivision/cpp23-examples
cpp20-modules cpp23
Last synced: 14 days ago
JSON representation
Example C++23 and C++20 syntax and tests of compilers and CMake
- Host: GitHub
- URL: https://github.com/scivision/cpp23-examples
- Owner: scivision
- License: mit
- Created: 2019-06-20T02:27:42.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T04:55:37.000Z (7 months ago)
- Last Synced: 2024-05-02T03:08:05.779Z (7 months ago)
- Topics: cpp20-modules, cpp23
- Language: C++
- Homepage:
- Size: 164 KB
- Stars: 64
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++23 and C++20 Examples
[![ci](https://github.com/scivision/Cpp23-examples/actions/workflows/cmake.yml/badge.svg)](https://github.com/scivision/Cpp23-examples/actions/workflows/cmake.yml)
Examples of using CMake with
[C++26](https://en.cppreference.com/w/cpp/26),
C++23, and C++20 standard syntax.
This is useful for testing of compilers and build systems--already several bugs have been so detected.We typically use
[feature testing macros](https://en.cppreference.com/w/cpp/feature_test)
to detect a feature, but some features require a small compile and link test.Related projects:
* [C23 examples](https://github.com/scivision/C23-examples)
* [C++17 filesystem application](https://github.com/scivision/fortran-filesystem)
* [C++ modules](https://github.com/scivision/CppModules)## References
* [Each new C++20 feature with example in one page](https://oleksandrkvl.github.io/2021/04/02/cpp-20-overview.html)