From 56d4646c01737fc3c86af3cc3921dd329e0bf372 Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Mon, 26 Aug 2013 00:57:07 -0700 Subject: [PATCH] Add C++ library version check --- capnp/fixMaybe.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/capnp/fixMaybe.h b/capnp/fixMaybe.h index be56680..a1dfac6 100644 --- a/capnp/fixMaybe.h +++ b/capnp/fixMaybe.h @@ -1,6 +1,8 @@ #include "kj/common.h" #include +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 T fixMaybe(::kj::Maybe val) { KJ_IF_MAYBE(new_val, val) {