Add C++ library version check

This commit is contained in:
Jason Paryani 2013-08-26 00:57:07 -07:00
parent 57dc3aa9fe
commit 56d4646c01

View file

@ -1,6 +1,8 @@
#include "kj/common.h"
#include <stdexcept>
static_assert(CAPNP_VERSION >= 3000, "Version of Cap'n Proto C++ Library is too old. Please upgrade to a version >= 0.3 and then re-install this python library");
template<typename T>
T fixMaybe(::kj::Maybe<T> val) {
KJ_IF_MAYBE(new_val, val) {