Skip to content

C++11 header-only pre::boost companion library baked with love. Moved to it's own organization :

License

Notifications You must be signed in to change notification settings

daminetreg/lib-cpp-pre

Repository files navigation

This repository has moved to it's own organization https://github.com/cpp-pre

lib-cpp-pre {#mainpage}

C++11 header-only boost companion library baked with love.

Features

  • [to_json](@ref pre::json::to_json) and [from_json](@ref pre::json::from_json) functions for any custom or standard types & aggregate.
  • [Lambda & Function instrospector traits](@ref pre::type_traits::function_traits)
  • A [mockup serial port](@ref boost::asio::mockup_serial_port_service) working with boost::asio
  • safe cast from enums underlying_type in the enum type.
  • std::chrono::duration & boost::chrono::duration suffixes for ms, sec... until C++14 is mainstream.
  • bytes & bits manipulation utilities

About

This C++11 header-only library provides utilities that we miss in Boost for the moment when writing productive code.

We author it in our free time to help our personal project and companies to centralize useful reusable code, that we polish until we can propose it to the Boost Libraries.

We always deprecate our own implementation when the Boost community finally accepts them, because we are just a backward-compatible staging-library for small Boost utilities.

That's why we named it pre, like pre::boost.

Getting started

The library is header only, but has dependencies on :

  • Boost 1.60.0
  • nlohmann-json

With hunter CMake Package manager

Simply drop in your CMakeLists.txt the following :

hunter_add_package(lib-cpp-pre)
find_package(lib-cpp-pre 1.3.7 REQUIRED)
include_directories(AFTER ${LIB_CPP_PRE_INCLUDE_DIRS})

Without hunter

You can install these dependencies yourself, and then install the library this way :

mkdir build/
cd build/
cmake .. -DHUNTER_ENABLED=OFF && make install

What we already brought to Boost

License

Licensed under the MIT License, see LICENSE.

Contributors

  • Damien Buhl (alias daminetreg)
  • Patrick Wieder (alias linkineo) for his reviews
  • Daniel Friedrich (alias dan-42) : Lambda & Function instrospector traits

About

C++11 header-only pre::boost companion library baked with love. Moved to it's own organization :

Resources

License

Stars

Watchers

Forks

Packages

No packages published