https://github.com/jcelerier/let
https://github.com/jcelerier/let
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jcelerier/let
- Owner: jcelerier
- License: agpl-3.0
- Created: 2020-08-30T09:16:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-30T09:17:17.000Z (almost 6 years ago)
- Last Synced: 2025-03-23T07:43:13.303Z (over 1 year ago)
- Language: C++
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Micro-library to add const to types
Given:
```C++
#include
foo** ye_olde_c_api();
let ptr = ye_olde_c_api();
```
Then, the following holds:
```
static_assert(std::is_same_v);
```
Dependencies: C++17.
This is not D-like deep-const - nothing can be done for pointers contained inside structures.