Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)