Error if boost != 1.67.0

This commit is contained in:
Alex Miller 2019-01-25 11:40:47 -08:00 committed by Alex Miller
parent af617d68e6
commit 367bcff700
1 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,14 @@
#include "flow/ThreadPrimitives.h"
#include "flow/network.h"
#include <boost/version.hpp>
#if BOOST_VERSION == 105200
#error Boost is still 1.52.0
#elif BOOST_VERSION != 106700
#error Boost is not 1.67.0
#endif
using namespace std::rel_ops;
#define TEST( condition ) if (!(condition)); else { static TraceEvent* __test = &(TraceEvent("CodeCoverage").detail("File", __FILE__).detail("Line",__LINE__).detail("Condition", #condition)); }