https://github.com/stefanhamminga/require
Very simple C++ library to specify a required language standard version in a header or source.
https://github.com/stefanhamminga/require
c-plus-plus library standards
Last synced: about 1 year ago
JSON representation
Very simple C++ library to specify a required language standard version in a header or source.
- Host: GitHub
- URL: https://github.com/stefanhamminga/require
- Owner: StefanHamminga
- License: apache-2.0
- Created: 2018-01-01T09:43:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-01T10:24:21.000Z (over 8 years ago)
- Last Synced: 2025-03-30T05:41:33.666Z (over 1 year ago)
- Topics: c-plus-plus, library, standards
- Language: CMake
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# require
Very simple C++ library to specify a required language standard or feature in a header or source.
Some language features of newer standards have clear errors indicating use of an outdated standard. Because this is not always the case these helper includes will enforce a strong and clear error instead. Especially when combined with `-Wfatal-errors`.
## Installation
```bash
git clone https://github.com/StefanHamminga/require.git
cd require
mkdir build
# Prepare to install in `/usr/local/include/`
cmake ..
# Or to install in the default system location for most Linux distros:
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
sudo make install
```
## Usage
```cpp
// My library or source
#pragma once
#include
// #include
#include ...
```
## Authors and license
This library is written by [Stefan Hamminga](stefan@prjct.net) and may be freely shared, distributed and modified according to the terms of the Apache 2.0 license (included as the file `LICENSE`).
## Repository
[https://github.com/StefanHamminga/require](https://github.com/StefanHamminga/require)