mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 16:35:04 +01:00
Add C++ library version check
This commit is contained in:
parent
57dc3aa9fe
commit
56d4646c01
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue