forked from boostorg/conversion
This is part of the effort to make the Boost libraries "modular" for build and consumption. See https://lists.boost.org/Archives/boost/2024/01/255704.php and https://github.com/grafikrobot/boost-b2-modular/blob/b2-modular/README.adoc for more information. This PR depends on the following other PRs being merged to both develop and master branches of the respective repos: - https://github.com/boostorg/boost/pull/854 This PR will be changed to ready for review, i.e. not draft, when the above are merged. Do not merge this one until that time.
32 lines
921 B
Plaintext
32 lines
921 B
Plaintext
# Copyright (C) 2001-2003 Douglas Gregor
|
|
# Copyright (C) Antony Polukhin, 2011-2024
|
|
#
|
|
# 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)
|
|
#
|
|
|
|
require-b2 5.0.1 ;
|
|
import-search /boost/config/checks ;
|
|
import config : requires ;
|
|
import testing ;
|
|
import feature ;
|
|
|
|
project
|
|
: requirements
|
|
<library>/boost/conversion//boost_conversion
|
|
[ requires cxx11_decltype ]
|
|
# default to all warnings on:
|
|
<warnings>all
|
|
# set warnings as errors for those compilers we know we get warning free:
|
|
<toolset>gcc:<cxxflags>-Wextra
|
|
<toolset>gcc:<cxxflags>-Wno-uninitialized
|
|
;
|
|
|
|
test-suite conversion
|
|
: [ run implicit_cast.cpp ]
|
|
[ compile-fail implicit_cast_fail.cpp ]
|
|
[ run cast_test.cpp ]
|
|
[ run polymorphic_cast_test.cpp ]
|
|
[ compile-fail implicit_cast_fail2.cpp ]
|
|
;
|