https://github.com/beached/daw_integer
Safer C++ Integers
https://github.com/beached/daw_integer
Last synced: 2 months ago
JSON representation
Safer C++ Integers
- Host: GitHub
- URL: https://github.com/beached/daw_integer
- Owner: beached
- License: bsl-1.0
- Created: 2024-10-23T22:35:42.000Z (7 months ago)
- Default Branch: release
- Last Pushed: 2024-10-24T05:27:44.000Z (7 months ago)
- Last Synced: 2024-10-24T14:37:41.902Z (7 months ago)
- Language: C++
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `DAW Integer` - Safer C++ Integers
[](https://www.boost.org/LICENSE_1_0.txt)
`daw_integer` is a lightweight library that provides safer integer operations for C++ developers. It helps prevent common issues such as integer overflows, underflows, and undefined behavior, ensuring safer arithmetic operations and improving code reliability.
## Table of Contents
- [Features](#features)
- [Usage](#usage)
- [Example](#example)
- [License](#license)
- [Contributing](#contributing)---
## Features
- **Safer Integer Operations**: Helps prevent overflow and underflow errors.
- **Customizable Behavior**: Options to handle errors gracefully or enforce strict checks.
- **Lightweight**: Minimal overhead for safety enhancements.
- **C++17 and Later**: Leverages modern C++ standards for clean and efficient code.---
## Usage
To use daw_integer, simply include the header in your project:```cpp
#include
```
You can then replace standard integer types with safer versions provided by daw_integer such as `daw::i8`, `daw::i16`, `daw::i32`, and `daw::i64`.