Add BOOST_LAMBDA2_VERSION

This commit is contained in:
Peter Dimov 2021-06-27 03:42:02 +03:00
parent 6ac67c631c
commit ee939bb5ac
3 changed files with 18 additions and 1 deletions

View File

@ -9,6 +9,10 @@
#include <type_traits>
#include <utility>
// Same format as BOOST_VERSION:
// major * 100000 + minor * 100 + patch
#define BOOST_LAMBDA2_VERSION 107700
namespace boost
{
namespace lambda2

View File

@ -16,5 +16,5 @@ project : requirements
<toolset>gcc:<warnings-as-errors>on ;
run quick.cpp ;
run lambda2_test.cpp ;
run version.cpp ;

13
test/version.cpp Normal file
View File

@ -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 <boost/lambda2.hpp>
#include <boost/version.hpp>
#include <boost/core/lightweight_test.hpp>
int main()
{
BOOST_TEST_EQ( BOOST_LAMBDA2_VERSION, BOOST_VERSION );
return boost::report_errors();
}