From 2a8ce8e081126550202e0462541282c08f58e313 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:38:17 -0500 Subject: [PATCH] Make the library modular usable. --- build.jam | 26 ++++++++++++++++++++++++++ test/Jamfile.v2 | 4 ++-- test/call_traits_test.cpp | 5 +++-- 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 build.jam diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..9adff32 --- /dev/null +++ b/build.jam @@ -0,0 +1,26 @@ +# Copyright René Ferdinand Rivera Morell 2023 +# 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) + +import project ; + +project /boost/utility + : common-requirements + /boost/assert//boost_assert + /boost/config//boost_config + /boost/core//boost_core + /boost/io//boost_io + /boost/preprocessor//boost_preprocessor + /boost/throw_exception//boost_throw_exception + /boost/type_traits//boost_type_traits + include + ; + +explicit + [ alias boost_utility ] + [ alias all : boost_utility test ] + ; + +call-if : boost-library utility + ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index fdaef72..9ae09ed 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -13,7 +13,7 @@ run base_from_member_ref_test.cpp ; run binary_test.cpp ; -run call_traits_test.cpp : -u ; +run call_traits_test.cpp : -u : : /boost/type_traits//testing ; run compressed_pair_test.cpp ; run compressed_pair_final_test.cpp ; @@ -31,7 +31,7 @@ run string_ref_test2.cpp ; run string_ref_test_io.cpp ; # compile-fail string_view_from_rvalue.cpp ; compile string_view_constexpr_test1.cpp ; -run string_view_test1.cpp ; +run string_view_test1.cpp : : : /boost/container_hash//boost_container_hash ; run string_view_test2.cpp ; run string_view_test_io.cpp ; diff --git a/test/call_traits_test.cpp b/test/call_traits_test.cpp index 57ad67c..ea9d533 100644 --- a/test/call_traits_test.cpp +++ b/test/call_traits_test.cpp @@ -18,8 +18,9 @@ #include #include -#include -#include +// type_traits/test utilities +#include +#include #ifdef BOOST_MSVC #pragma warning(disable:4181) // : warning C4181: qualifier applied to reference type; ignored