1. Home
  2. Browse
  3. promise-cpp

promise-cpp

v2.1.2#0Latest

C++ promise/A+ library in Javascript style.

Install

Run the following Vcpkg command to install the port.

vcpkg install promise-cpp

Usage

The package promise-cpp is header only and can be used from CMake via:

find_path(PROMISE_CPP_INCLUDE_DIRS "promise-cpp/promise.hpp")
target_include_directories(main PRIVATE ${PROMISE_CPP_INCLUDE_DIRS})

Make sure to define the pre-processor macro PROMISE_HEADONLY before including "promise-cpp/promise.hpp":

#define PROMISE_HEADONLY
#include "promise-cpp/promise.hpp"

Dependencies

See source

Version

v2.1.2#0

Publication

Supports

All

GitHub

xhawk18/promise-cpp

Homepage

github.com/xhawk18/promise-cpp

Subtree

3434e5cbab

License

Complex license

Definition

Manifest