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

https://github.com/jcelerier/let


https://github.com/jcelerier/let

Last synced: 12 months ago
JSON representation

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.