diff --git a/checks/architecture/riscv.cpp b/checks/architecture/riscv.cpp index 55f37796..d2cea68b 100644 --- a/checks/architecture/riscv.cpp +++ b/checks/architecture/riscv.cpp @@ -1,5 +1,6 @@ // riscv.cpp // +// Copyright Andreas Schwab 2019 // 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) diff --git a/config.htm b/config.htm deleted file mode 100644 index df7430bd..00000000 --- a/config.htm +++ /dev/null @@ -1,15 +0,0 @@ - - - - - -

- Automatic redirection failed, please go to doc/html/index.html. -

-

Copyright John Maddock 2001

-

Distributed under the Boost Software License, Version 1.0. (See accompanying file - LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt).

- - - - diff --git a/doc/build_time.qbk b/doc/build_time.qbk index 74677057..34030df7 100644 --- a/doc/build_time.qbk +++ b/doc/build_time.qbk @@ -1,3 +1,14 @@ +[/ + Boost.Config + + Copyright (c) 2001 Beman Dawes + Copyright (c) 2001 Vesa Karvonen + Copyright (c) 2001 John Maddock + + 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) +] [section:build_config Build Time Configuration] diff --git a/doc/config.qbk b/doc/config.qbk index 584fc298..c7b1116b 100644 --- a/doc/config.qbk +++ b/doc/config.qbk @@ -19,7 +19,6 @@ Distributed under the Boost Software License, Version 1.0. [/ Cited Boost resources ] -[def __BOOST_REGRESSION_TEST_DRIVER__ [@../../../../tools/regression/doc/index.html boost regression test driver]] [def __BOOST_CONFIG_HEADER__ [@../../../../boost/config.hpp ]] [def __BOOST_CONFIG_USER_HEADER__ [@../../../../boost/config/user.hpp ]] [def __BOOST_CONFIG_SUFFIX_HEADER__ [@../../../../boost/config/detail/suffix.hpp ]] diff --git a/doc/configuring_boost.qbk b/doc/configuring_boost.qbk index ee86a9a3..118b4b02 100644 --- a/doc/configuring_boost.qbk +++ b/doc/configuring_boost.qbk @@ -419,9 +419,6 @@ Although you can run the configuration regression tests as individual test files, there are rather a lot of them, so there are a couple of shortcuts to help you out: -If you have built the __BOOST_REGRESSION_TEST_DRIVER__, then you can use this to -produce a nice html formatted report of the results using the supplied test file. - Alternatively you can run the configure script like this: [: `./configure --enable-test`] diff --git a/doc/cstdint.qbk b/doc/cstdint.qbk index 59ef5b3f..de14ada6 100644 --- a/doc/cstdint.qbk +++ b/doc/cstdint.qbk @@ -1,3 +1,15 @@ +[/ + Boost.Config + + Copyright (c) 2001 Beman Dawes + Copyright (c) 2001 Vesa Karvonen + Copyright (c) 2001 John Maddock + + 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) +] + [section:cstdint Standard Integer Types] [section Overview] diff --git a/doc/html/boost_config/boost_macro_reference.html b/doc/html/boost_config/boost_macro_reference.html index 59fac717..f5c35b4e 100644 --- a/doc/html/boost_config/boost_macro_reference.html +++ b/doc/html/boost_config/boost_macro_reference.html @@ -3832,6 +3832,18 @@ + +

+ BOOST_NO_CXX17_HDR_VARIANT +

+ + +

+ The compiler does not support the header <variant>. +

+ + +

BOOST_NO_CXX17_HDR_STRING_VIEW @@ -4567,6 +4579,33 @@ + +

+ BOOST_ATTRIBUTE_NODISCARD +

+ + +

+ Expands to [[nodiscard]] when this is available - can + be used to create a warning when a type or variable is unused. +

+ + + + +

+ BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS +

+ + +

+ Expands to [[no_unique_address]] when this is available - can + be used to indicate that a non-static data member need not have + a unique address (for example empty classes). +

+ + +

BOOST_MAY_ALIAS, diff --git a/doc/html/boost_config/build_config.html b/doc/html/boost_config/build_config.html index 7acec1b0..d7ad0143 100644 --- a/doc/html/boost_config/build_config.html +++ b/doc/html/boost_config/build_config.html @@ -104,7 +104,8 @@ Notice that multiple arguments can be added to the requires rule, and that these are always the same as the Boost.Config macro name, but in lower case and with the boost_no_ or boost_has_ - prefix removed. + prefix removed. You can also use any C++ standard feature-macro name with the + leading underscores removed (see more below).

When building the above example, you will see at the start of the build process @@ -114,6 +115,36 @@ - Boost.Config Feature Check: cxx11_constexpr : yes - Boost.Config Feature Check: cxx11_user_defined_literals : yes +

+ If you wish to make a build conditional on a C++ standard feature macro then + you can specify these too, just remove the leading underscores from the name. + For example: +

+
[ requires cpp_constexpr ]
+
+

+ To require C++11 style const-expressions. If you want to specify a macro from + a particular standard, then you append an underscore followed by the (2 digit) + year of the standard, for example: +

+
[ requires cpp_constexpr_17 ]
+
+

+ For C++17 constepxr. If you don't specify a standard then you get the first + version that introduced the macro. In addition there are only standard-specific + rules for each version bump of the macro, so: +

+
[ requires cpp_if_constexpr_17 ]
+
+

+ Is fine since the macro was introduced in C++17 and is the same as the un-versioned + name, but: +

+
[ requires cpp_if_constexpr_20 ]
+
+

+ Will result in a build error since there is no C++20 version bump for __cpp_if_constexpr. +

That's all there is to this handy feature, should at any time you be unsure of the feature-test names you can pass to the "requires" rule, then diff --git a/doc/html/index.html b/doc/html/index.html index 38d8c0d3..cf34e1fc 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -969,11 +969,6 @@ files, there are rather a lot of them, so there are a couple of shortcuts to help you out:

-

- If you have built the boost - regression test driver, then you can use this to produce a nice html - formatted report of the results using the supplied test file. -

Alternatively you can run the configure script like this:

@@ -993,7 +988,7 @@ - +

Last revised: October 15, 2018 at 16:56:00 GMT

Last revised: August 20, 2019 at 17:48:08 GMT


diff --git a/include/boost/config/compiler/visualc.hpp b/include/boost/config/compiler/visualc.hpp index e2ea2702..092252e3 100644 --- a/include/boost/config/compiler/visualc.hpp +++ b/include/boost/config/compiler/visualc.hpp @@ -111,8 +111,8 @@ // TR1 features: // #if (_MSC_VER >= 1700) && defined(_HAS_CXX17) && (_HAS_CXX17 > 0) -// # define BOOST_HAS_TR1_HASH // don't know if this is true yet. -// # define BOOST_HAS_TR1_TYPE_TRAITS // don't know if this is true yet. +// # define BOOST_HAS_TR1_HASH // don't know if this is true yet. +// # define BOOST_HAS_TR1_TYPE_TRAITS // don't know if this is true yet. # define BOOST_HAS_TR1_UNORDERED_MAP # define BOOST_HAS_TR1_UNORDERED_SET #endif diff --git a/include/boost/config/platform/vxworks.hpp b/include/boost/config/platform/vxworks.hpp index 7718acb6..0564b944 100644 --- a/include/boost/config/platform/vxworks.hpp +++ b/include/boost/config/platform/vxworks.hpp @@ -318,7 +318,7 @@ namespace std { #ifdef __cplusplus -extern "C" void bzero (void *, size_t); // FD_ZERO uses bzero() but doesn't include strings.h +extern "C" void bzero (void *, size_t); // FD_ZERO uses bzero() but doesn't include strings.h // Put the selfmade functions into the std-namespace, just in case namespace std { diff --git a/include/boost/config/stdlib/dinkumware.hpp b/include/boost/config/stdlib/dinkumware.hpp index 19c772c1..9f21468e 100644 --- a/include/boost/config/stdlib/dinkumware.hpp +++ b/include/boost/config/stdlib/dinkumware.hpp @@ -97,7 +97,7 @@ #endif #include #if ( (!_HAS_EXCEPTIONS && !defined(__ghs__)) || (defined(__ghs__) && !_HAS_NAMESPACE) ) && !defined(__TI_COMPILER_VERSION__) && !defined(__VISUALDSPVERSION__) \ - && !defined(__VXWORKS__) + && !defined(__VXWORKS__) # define BOOST_NO_STD_TYPEINFO #endif diff --git a/include/boost/config/user.hpp b/include/boost/config/user.hpp index 28e7476a..8160fcae 100644 --- a/include/boost/config/user.hpp +++ b/include/boost/config/user.hpp @@ -1,8 +1,8 @@ // boost/config/user.hpp ---------------------------------------------------// // (C) Copyright John Maddock 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file +// Use, modification and distribution are subject to 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) // Do not check in modified versions of this file, diff --git a/include/boost/cstdint.hpp b/include/boost/cstdint.hpp index c8474c46..9c88d13b 100644 --- a/include/boost/cstdint.hpp +++ b/include/boost/cstdint.hpp @@ -52,9 +52,9 @@ // so we disable use of stdint.h when GLIBC does not define __GLIBC_HAVE_LONG_LONG. // See https://svn.boost.org/trac/boost/ticket/3548 and http://sources.redhat.com/bugzilla/show_bug.cgi?id=10990 // -#if defined(BOOST_HAS_STDINT_H) \ - && (!defined(__GLIBC__) \ - || defined(__GLIBC_HAVE_LONG_LONG) \ +#if defined(BOOST_HAS_STDINT_H) \ + && (!defined(__GLIBC__) \ + || defined(__GLIBC_HAVE_LONG_LONG) \ || (defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 17))))) // The following #include is an implementation artifact; not part of interface. diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index cfc42ade..db37648f 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -110,9 +110,6 @@ test-suite config [ compile header_deprecated_test.cpp ] ; -obj has_clang_implicit_fallthrough : cmd_line_check.cpp : - clang:"-std=c++11 -Wimplicit-fallthrough" on all ; - explicit has_clang_implicit_fallthrough ; exe config_info_printer : config_info.cpp ; diff --git a/test/boost_fallthrough_test.cpp b/test/boost_fallthrough_test.cpp index 3fabe351..44b86895 100644 --- a/test/boost_fallthrough_test.cpp +++ b/test/boost_fallthrough_test.cpp @@ -1,3 +1,4 @@ +// (C) Copyright John Maddock 2013. // Use, modification and distribution are subject to 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) diff --git a/test/boost_no_cxx11_thread_local.ipp b/test/boost_no_cxx11_thread_local.ipp index caaed978..0f4281fe 100644 --- a/test/boost_no_cxx11_thread_local.ipp +++ b/test/boost_no_cxx11_thread_local.ipp @@ -22,7 +22,7 @@ int check_local(int n) if(size != n) { s = T(n, ' '); - size = n; + size = n; } return size; } diff --git a/test/cmd_line_check.cpp b/test/cmd_line_check.cpp deleted file mode 100644 index 33dff646..00000000 --- a/test/cmd_line_check.cpp +++ /dev/null @@ -1,9 +0,0 @@ - -#ifndef __clang__ -# error "This test is for Clang only" -#endif - -int main() -{ - return 0; -} \ No newline at end of file diff --git a/test/config_test_c.c b/test/config_test_c.c index 9955dbe6..d660a1c3 100644 --- a/test/config_test_c.c +++ b/test/config_test_c.c @@ -1,4 +1,8 @@ - +/* (C) Copyright John Maddock 2011. + Use, modification and distribution are subject to 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 diff --git a/test/helper_macro_test.cpp b/test/helper_macro_test.cpp index ffa8060a..efdb20f9 100644 --- a/test/helper_macro_test.cpp +++ b/test/helper_macro_test.cpp @@ -1,3 +1,5 @@ +// (C) Copyright John Maddock 2014-9. +// (C) Copyright Andrey Semashev 2017. // Use, modification and distribution are subject to 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)