forked from boostorg/mp11
Add <boost/mp11/version.hpp>
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/version.hpp>
|
||||
#include <cstddef>
|
||||
|
||||
#if defined(__has_builtin)
|
||||
|
@ -8,6 +8,7 @@
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/version.hpp>
|
||||
#include <type_traits>
|
||||
#include <cstddef>
|
||||
|
||||
|
16
include/boost/mp11/version.hpp
Normal file
16
include/boost/mp11/version.hpp
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef BOOST_MP11_VERSION_HPP_INCLUDED
|
||||
#define BOOST_MP11_VERSION_HPP_INCLUDED
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
// Same format as BOOST_VERSION:
|
||||
// major * 100000 + minor * 100 + patch
|
||||
|
||||
#define BOOST_MP11_VERSION 107000
|
||||
|
||||
#endif // #ifndef BOOST_MP11_VERSION_HPP_INCLUDED
|
15
test/Jamfile
15
test/Jamfile
@ -192,6 +192,21 @@ run mp_bind_back.cpp ;
|
||||
# mpl
|
||||
run mpl.cpp : ;
|
||||
|
||||
# version
|
||||
run version.cpp ;
|
||||
run mp11_version.cpp ;
|
||||
run list_version.cpp ;
|
||||
run algorithm_version.cpp ;
|
||||
run integral_version.cpp ;
|
||||
run utility_version.cpp ;
|
||||
run function_version.cpp ;
|
||||
run map_version.cpp ;
|
||||
run set_version.cpp ;
|
||||
run bind_version.cpp ;
|
||||
run integer_sequence_version.cpp ;
|
||||
run tuple_version.cpp ;
|
||||
run mpl_version.cpp ;
|
||||
|
||||
# quick (for CI)
|
||||
alias quick : mp11 mp_size ;
|
||||
explicit quick ;
|
||||
|
17
test/algorithm_version.cpp
Normal file
17
test/algorithm_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/algorithm.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/bind_version.cpp
Normal file
17
test/bind_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/bind.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/function_version.cpp
Normal file
17
test/function_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/function.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/integer_sequence_version.cpp
Normal file
17
test/integer_sequence_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/integer_sequence.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/integral_version.cpp
Normal file
17
test/integral_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/integral.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/list_version.cpp
Normal file
17
test/list_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/list.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/map_version.cpp
Normal file
17
test/map_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/map.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/mp11_version.cpp
Normal file
17
test/mp11_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/mpl_version.cpp
Normal file
17
test/mpl_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/mpl.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/set_version.cpp
Normal file
17
test/set_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/set.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/tuple_version.cpp
Normal file
17
test/tuple_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/tuple.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/utility_version.cpp
Normal file
17
test/utility_version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/utility.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
17
test/version.cpp
Normal file
17
test/version.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
//
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/mp11/version.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION );
|
||||
return boost::report_errors();
|
||||
}
|
Reference in New Issue
Block a user