tgockel / zookeeper-cpp

A ZooKeeper client for C++.
http://tgockel.github.io/zookeeper-cpp/
Apache License 2.0
148 stars 40 forks source link

Adds `boost::future` as an implementation of `zk::future` #117

Closed tgockel closed 3 years ago

tgockel commented 3 years ago

This changes zk::future, zk::promise, zk::async, and zk::launch to use the Standard Library or Boost based on the ZKPP_FUTURE build setting set to "Boost".

This also changes exceptions to support Boost's boost::current_exception by throwing all exceptions through zk::throw_exception, which aliases boost::throw_exception.