Make the library modular usable.

This commit is contained in:
Rene Rivera 2024-03-11 08:38:17 -05:00
parent e0ecf92764
commit 2a8ce8e081
3 changed files with 31 additions and 4 deletions

26
build.jam Normal file
View File

@ -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
<source>/boost/assert//boost_assert
<source>/boost/config//boost_config
<source>/boost/core//boost_core
<source>/boost/io//boost_io
<source>/boost/preprocessor//boost_preprocessor
<source>/boost/throw_exception//boost_throw_exception
<source>/boost/type_traits//boost_type_traits
<include>include
;
explicit
[ alias boost_utility ]
[ alias all : boost_utility test ]
;
call-if : boost-library utility
;

View File

@ -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 : : <source>/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 : : : <source>/boost/container_hash//boost_container_hash ;
run string_view_test2.cpp ;
run string_view_test_io.cpp ;

View File

@ -18,8 +18,9 @@
#include <typeinfo>
#include <boost/call_traits.hpp>
#include <libs/type_traits/test/test.hpp>
#include <libs/type_traits/test/check_type.hpp>
// type_traits/test utilities
#include <test.hpp>
#include <check_type.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4181) // : warning C4181: qualifier applied to reference type; ignored