Promise++ is a C++ library that integrates Promise A+ specification using C++11 features.
- Download or clone the Promise++ repository.
- Include Promise.h in the C++ file you want to use promises.
- See a sample version in source.cpp
- Install Makefile Project Creator (MPC) on your system.
- We use MPC to easily create Makefiles and other code environments such as visual studio projects.
- you'll need Perl on your system to use MPC.
- In a terminal/command-line, navigate to the Promise++ repo and run
perl mwc.pl -type make .
- This will create the Makefile for executing our sample code found in source.cpp.
- To compile run
make
- To execute run
./Promises