On Mon, Jul 31, 2017 at 03:50:59PM -0400, Russell Bryant wrote:
> On Sun, Jul 30, 2017 at 10:54 PM, Ben Pfaff <[email protected]> wrote:
> > This should help address a recurring problem.
> >
> > Signed-off-by: Ben Pfaff <[email protected]>
> > ---
> > .travis.yml | 1 +
> > Makefile.am | 1 +
> > configure.ac | 2 ++
> > include/openvswitch/automake.mk | 14 ++++++++++++++
> > m4/openvswitch.m4 | 21 +++++++++++++++++++++
> > 5 files changed, 39 insertions(+)
>
> Why does this patch depend on libboost? It looks like it's only used
> when building a test C++ program in configure. We could build a test
> C++ program without the dependency, right?
It's because of include/openvswitch/compiler.h, which has:
#elif defined(__cplusplus)
#include <boost/static_assert.hpp>
#define BUILD_ASSERT BOOST_STATIC_ASSERT
#define BUILD_ASSERT_DECL BOOST_STATIC_ASSERT
We could probably define our own C++-compatible static assert without
boost. It looks like C++11 and later has a built-in static_assert:
http://en.cppreference.com/w/cpp/language/static_assert
Any idea whether it's reasonable to assume C++11 support these days?
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev