diff options
author | Ben Pfaff <blp@ovn.org> | 2017-07-31 13:31:43 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-07-31 16:03:38 -0700 |
commit | 994bfc298502e6f9178dd231c569a6b305a8299f (patch) | |
tree | fa438d31d34e983b0cc2dd81903970be6d4d5859 /include/openflow | |
parent | 4d617a87ec0be851a5a0d8f7f99ffb237a0ef397 (diff) | |
download | openvswitch-994bfc298502e6f9178dd231c569a6b305a8299f.tar.gz |
Automatically verify that OVS header files work OK in C++ also.
This should help address a recurring problem.
This change makes the OVS header files, when parsed by a C++ compiler,
require C++11 or later.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'include/openflow')
-rw-r--r-- | include/openflow/openflow-common.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 410f392d2..5f1e22589 100644 --- a/include/openflow/openflow-common.h +++ b/include/openflow/openflow-common.h @@ -60,8 +60,7 @@ extern int (*build_assert(void))[ sizeof(struct { \ unsigned int build_assert_failed : (EXPR) ? 1 : -1; })] #else /* __cplusplus */ -#include <boost/static_assert.hpp> -#define OFP_ASSERT BOOST_STATIC_ASSERT +#define OFP_ASSERT(EXPR) static_assert(EXPR, "assertion failed") #endif /* __cplusplus */ /* Version number: |