diff --git a/include/boost/lambda2/lambda2.hpp b/include/boost/lambda2/lambda2.hpp index 676b613..aafec84 100644 --- a/include/boost/lambda2/lambda2.hpp +++ b/include/boost/lambda2/lambda2.hpp @@ -9,6 +9,10 @@ #include #include +// Same format as BOOST_VERSION: +// major * 100000 + minor * 100 + patch +#define BOOST_LAMBDA2_VERSION 107700 + namespace boost { namespace lambda2 diff --git a/test/Jamfile b/test/Jamfile index bd305cb..9aabfc1 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -16,5 +16,5 @@ project : requirements gcc:on ; run quick.cpp ; - run lambda2_test.cpp ; +run version.cpp ; diff --git a/test/version.cpp b/test/version.cpp new file mode 100644 index 0000000..d4c8de5 --- /dev/null +++ b/test/version.cpp @@ -0,0 +1,13 @@ +// Copyright 2021 Peter Dimov +// Distributed under the Boost Software License, Version 1.0. +// https://www.boost.org/LICENSE_1_0.txt + +#include +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_LAMBDA2_VERSION, BOOST_VERSION ); + return boost::report_errors(); +}