Version 1.73.0
Version 1.73.0
April 28th, 2020 03:57 GMT
| Platform | File | SHA256 Hash |
|---|---|---|
| unix | boost_1_73_0.tar.bz2 | 4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402 |
| boost_1_73_0.tar.gz | 9995e192e68528793755692917f9eb6422f3052a53c5e13ba278a228af6c7acf | |
| windows | boost_1_73_0.7z | d2e7501bb04fe7abc09aa93f013ae997604286a882da1bd36ddd96ea1163ea71 |
| boost_1_73_0.zip | 0909a79524f857ef54570ceef8f397cc0629202532cc997785479c7c08bbc2a4 |
Known Issues
These are patches from library authors which were found too late to be fixed in the release. Be careful as they have not been through the normal testing process.
-
Outcome
status_code_domainassertion removal -
Beast and coroutines
New Libraries
-
Nowide: Standard library functions with UTF-8 API on Windows, from Artyom Beilis.
-
StaticString: A dynamically resizable string of characters with compile-time fixed capacity and contiguous embedded storage, from Vinnie Falco and Krystian Stasiowski
Updated Libraries
-
Align:
-
Update
aligned_allocto support older mingw32.
-
-
Any:
-
Speedup compilation by not including
<algorithm>. -
Maintenance work, including CI hardening.
-
-
Asio:
-
Fixed compatibility with C++20 concept syntax.
-
Marked the POSIX descriptor classes' move constructors as
noexcept. -
Added the
ssl::host_name_verificationclass, which is a drop-in replacement forssl::rfc2818_verification. Thessl::rfc2818_verificationclass has been marked as deprecated. As a consequence of this change, SSL support now depends on functions that were introduced in OpenSSL 1.0.2. -
Added an
ssl::contextconstructor to take ownership of a native handle. -
Changed C++ language version detection with gcc to use
__cplusplusmacro. -
Fixed a work counting issue in the asynchronous resolve operation for endpoints.
-
Fixed the
strand<>converting constructors and assignment operators. -
Ensured that resolvers are restarted correctly after a fork.
-
Fixed compatibility with the current NetBSD release.
-
Removed spurious handler requirement checks in some
async_readoverloads. -
Changed the
ssl::contextclass to propagate non-EOF errors from theadd_certificate_authorityfunction. -
Fixed a Windows-specific
thread_pooldestructor hang that occurred when the pool had an associated I/O object. -
Changed the select reactor to recreate the "self pipe trick" sockets on error. This addresses an issue on some versions of Windows, where these sockets are discconected after a system sleep.
-
Fixed a compile error in the buffered streams due to the lack of reference collapsing in C++98.
-
Changed the
priority_schedulerexample to demonstrate calls toshutdown()anddestroy(). -
Removed some unnecessary null pointer checks.
-
Changed Windows platform detection to recognise TV titles as Windows apps.
-
Added some emscripten compatibility patches.
-
Fixed a compile error in the
use_awaitable_t::as_default_onfunction. -
Changed all uses of the boost.bind placeholders to use the
boost::placeholdersnamespace. -
Fixed a potential compile error in the
async_composeimplementation due to incorrect overload selection. -
Suppressed some non-virtual destructor warnings.
-
Various documentation fixes and improvements.
-
-
Assert:
-
Added
source_location.
-
-
Atomic:
-
Implemented
atomic_flag::testoperation, which was introduced in C++20. -
atomic<T>should now take into account alignment requirements ofT, which makes a difference if those requirements are higher than that of the internal storage ofatomic. -
Added static asserts enforcing the requirements on the value type
Tused withatomicandatomic_ref. This should prohibit invalid types from being used as atomics. -
Improved internal lock pool implementation. The pool is larger, and lock selection accounts for atomic object alignment, which should reduce the potential of thread contention.
-
Fixed incorrect x86 code generated for
bit_test_and_*operations on 8 and 16-bit arguments. Other architectures are not affected. -
Fixed a possible unaligned memory access in
compare_exchange_*operations, if alignment requirements ofvalue_typeare less than that of the internal storage ofatomic. -
boost/atomic/atomic.hppno longer includesboost/atomic/atomic_flag.hppandboost/atomic/fences.hppand only defines theboost::atomicclass template and related typedefs. Include the other headers explicitly or useboost/atomic.hppto include all parts of Boost.Atomic. -
The
atomic<T>::storage()accessor and associatedatomic<T>::storage_typetype are deprecated. Instead, users are advised to useatomic<T>::value()andatomic<T>::value_type, respectively. Users can defineBOOST_ATOMIC_SILENCE_STORAGE_DEPRECATIONto disable deprecation warnings for the time of transition. The deprecated pieces will be removed in a future release. -
Removed support for
BOOST_ATOMIC_DETAIL_HIGHLIGHT_OP_AND_TEST. This macro was used as a helper for transition to the updated returned values of*_and_testoperations in Boost.Atomic 1.67, which was released 2 years before 1.73.
-
Beast:
-
This is a maintenance update.
-
Nested
mutable_data_typein Beast dynamic buffers is deprecated. -
We'd love to know how you or your company use Beast, consider adding an entry to the Companies and Individuals Using Beast list.
-
See the full Release Notes for a complete list of changes.
-
-
Conversion:
-
Added
boost::polymorphic_downcastfor references (thanks to Julien Delacroix for the patch). -
Significant docs update.
-
-
DLL:
-
Fixes and tests for demangling in
boost::dll::smart_library(thanks to Ramil Gauss for #35). -
Make UB sanitizers happy with
boost::dll::load_mode::type#30. -
Ceased dependence on MPL improving compile times (thanks to Nikita Kniazev for #34).
-
Clang and ICC on Windows fixes and CI support for those platforms (thanks to Nikita Kniazev #33).
-
Maintenance work, including CI hardening and tests improving.
-
-
Dynamic Bitset:
-
Fixed a portability issue in the definition of the maximum block limit.
-
-
Flyweight:
-
Maintenance work.
-
-
GIL:
-
Changed
-
Changed
-
Removed
extension/dynamic_image/reduce.hppas unused and possibly unfinished (PR#466). An implementation attempt of techniques described in the paper Efficient Run-Time Dispatching in Generic Programming with Minimal Code Bloat by Lubomir Bourdev, Jaakko Jarvi. -
Removed direct dependency on Boost.MPL, Boost.System and Boost.Test.
-
Started removing public macros for compile-time configuration of I/O extension tests, i.e.
BOOST_GIL_IO_TEST_ALLOW_READING_IMAGESandBOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES. Instead, if a test target is built, it builds all its test cases unconditionally.
-
-
Fixed
-
Avoid
longjmpinteraction during destruction of I/O extension objects (PR#433). -
Fixed missing alignment default value in constructor of
imageclass (PR#429). -
Fixed segmentation fault when reading corrupted PNG file (PR#414).
-
Fixed illegal initialization of return values in the old IOv1 interface of I/O extension (PR#409).
-
-
Acknowledgements
-
Samuel Debionne, Thiago Henrique Hüpner, Pranam Lashkari, Mateusz Loskot, Debabrata Mandal, Olzhas Zhumabek
-
-
Histogram:
-
New features
-
Added
cropcommand toreducealgorithm -
slicecommand inreducenow works oncategoryaxis -
Added
countaccumulator, can be used to add arbitrary metadata to each cell -
sumalgorithm gained a new argument to optionally sum only over inner bins
-
-
Several fixes for bugs in corner cases
-
Enhanced documentation
-
How to use Boost.Histogram as a backend in an external API
-
More on how to use Boost.Histogram with custom accumulators and Boost.Accumulators
-
More on how to use
reduce -
Updated benchmarks
-
-
See the full changelog here
-
-
IO:
-
Made all the IOS state saver classes non-copyable. (Glen Fernandes)
-
Correctly handle error upon first read from the input stream when reading a quoted string. (Glen Fernandes)
-
Implemented
ostream_joinerfor delimiter based joining. (Glen Fernandes) -
Relocated
ostream_stringfrom the Utility library to the IO library asostream_put. -
Correctly handle stream width and fill in quoted output. (Glen Fernandes)
-
Optimize quoted output to write directly to the stream buffer. (Glen Fernandes)
-
Glen Fernandes became the maintainer of the IO library.
-
-
Log:
-
New Features:
-
Default sink used in trivial logging, when no sinks are registered in the logging core, now automatically flushes output after each log record. (#103)
-
core::flushnow performs a flush on the default sink used for trivial logging, when no sinks are registered.
-
-
Bug fixes:
-
Added a workaround for some syslog API implementations (e.g. glibc), which do not save the application identification string in
openlogcall. Such implementations could access already freed memory on eachsyslogcall, resulting in undefined behavior. (#97) -
Fixed that log file rotation on a specific day of month (e.g.
rotation_at_time_point(boost::gregorian::greg_day(1))) could be silently ignored and not happen. (#98) -
Fixed that
text_file_backend::rotate_filecould throw if there were no log records written yet and target file name pattern was set. -
Ported various components of the library to
std::allocator_traitsto improve compatibility with C++20 allocators. -
Fixed compilation errors when building in MSYS2 Cygwin environment. (#102)
-
-
See changelog for more details.
-
-
Math:
-
IMPORTANT: C++03 support is now deprecated and will be removed from March 2021.
-
Added Cubic Hermite Interpolation.
-
Added Modified Akima Interpolation.
-
Added PCHIP Interpolation.
-
Added Quintic Hermite Interpolation.
-
Added entropy to numerous distributions.
-
Allow trivial quadrature case where the two end points are equal, and in addition allow bounds to be interchanged.
-
Fix exp_sinh quadrature to work with complex types over a non-native range.
-
Fix miscellaneous compiler warnings in factorial.hpp.
-
Use std::chrono rather than boost::chrono in timed pFq calculations.
-
Remove much of the old boost::mpl dependencies to improve constexpr support.
-
-
Mp11:
-
Added
mp_unique_if(contributed by Kris Jusiak) -
Added
mp_flatten -
Added
mp_rotate_left,mp_rotate_right(contributed by Duncan Barber) -
Added
mp_compose -
Added
mp_power_set -
Added
mp_partial_sum -
Added
mp_iterate
-
-
Multi-index Containers:
-
multi_index_containeris nowAllocatorAware. -
Swapping of internal
KeyFromValue,Compare,HashandPredobjects now selects the appropriateswapfunction betweenstd::swapand ADL candidates, in accordance with standard specifications in [swappable.requirements] (issue #29). -
Provided some internal copy constructors and assignment operators whose default implicit definition is deprecated in C++11 onwards ([depr.impldec]), which was warned about on some compilers.
-
Maintenance work.
-
-
Multiprecision:
-
IMPORTANT: Mark C++03 support as deprecated and due for removal in 2021.
-
Big update to cpp_int adds faster Karatsuba and Coomba multiplication routines.
-
Fix conversion of gmp_rational to
long doubleand__float128, fixes #178. -
Fix up libtommath support to function with the latest libtom releases.
-
Fix up some incompatibilities with the latest Intel C++ compiler.
-
Fix up
constexprarithmetic support for latest MSVC release.
-
-
Outcome:
-
Enhancements:
-
Performance of Outcome-based code compiled by clang has been greatly improved. The previous implementation of Outcome's status bitfield confused clang's optimiser, which caused low quality codegen. Unlike most codegen issues, this was noticeably in empirical benchmarks of real world code, as was shown by P1886 Error speed benchmarking.
-
The safe part of the
better_optimisationOutcome v2.2.0 future branch was merged to Outcome v2.1.3 which includes a new status bitfield implementation. This appears to not confuse clang's optimiser, and clang 9 produces code which routinely beats GCC 9's code for various canned use cases. -
Installability is now CI tested per commit. Due to installability of standalone Outcome (e.g.
make install) breaking itself rather more frequently than is ideal, installability is now tested on CI per commit.
-
-
Bug fixes:
-
#214 Newer Concepts implementing compilers were unhappy with the early check for destructibility of
TandE, so removed template constraints, falling back to static assert which runs later in the type instantiation sequence. -
#220 A false positive undefined behaviour sanitiser failure in some use cases of Experimental Outcome was worked around to avoid the failure message.
-
-
-
PolyCollection:
-
Suppressed a potential redundant move warning in
boost::poly_collection::for_each. -
Fixed a bug by which elements were copied rather than moved in allocator-extended move construction and move assigment between collections with non-propagating, unequal allocators.
-
Allocator-extended move construction no longer decays to allocator-extended copy construction for the legacy version of libstdc++-v3 shipped with GCC 4.8 (which can also be used by Clang).
-
-
Stacktrace:
-
Fixed msvc-9 build
-
Test:
-
Boost.test v3.13 see the Changes log for more details.
-
New feature: It is now possible to combine tolerance indication, user message and collection comparison modifier in a single
BOOST_TESTexpression. See change logs for more details.
-
-
ThrowException:
-
Added an overload of
throw_exceptionthat takes aboost::source_locationobject. -
NOTE: Projects using
BOOST_THROW_EXCEPTIONwith exceptions disabled will need to add a definition of this new overload.
-
-
TTI:
-
Added introspection of function templates for more recent C++ compilers versions from gcc and vc++. as well as all versions of clang. Older versions of vc++ before 14.0 and gcc prior to 4.8 may fail.
-
Added specific introspection for elements of struct/class, enum, and union types, which can be used for more fine-grained introspection than the general 'type' introspection.
-
-
TypeIndex:
-
Maintenance work, including CI integration with inspect tool.
-
-
Utility:
-
The
ostream_stringfacility has moved from the Utility library to the IO library asostream_put.
-
-
Variant2:
-
Added support for
std::hash,boost::hash. -
variant<T...>is now trivial when all types inT...are trivial. This improves performance by enabling it to be passed to, and returned from, functions in registers.
-
Updated Tools
Compilers Tested
Boost's primary test compilers are:
-
Linux:
-
Clang: 3.0, 4.0.1, 6.0.1
-
Clang, C++0x: 3.0
-
Clang, C++11: 3.0, 3.1, 3.2, 3.3, 3.4, 4.0.1, 6.0.1, 7.0.0, 8.0.0
-
Clang, C++14: 3.5.0, 3.6.0, 3.7.1, 3.8.0, 3.9.1, 4.0.0, 4.0.1, 5.0.2, 6.0.1, 7.0.0, 8.0.0
-
Clang, C++17: 5.0.2, 6.0.1, 7.0.0, 8.0.0
-
GCC: 4.4.7, 4.5.3, 4.6.3, 5.4.0, 8.0.1
-
GCC, C++0x: 4.4.7
-
GCC, C++11: 4.7.3, 4.8.5, 4.9.4, 5.4.0, 6.4.0, 7.1.0, 8.0.1
-
GCC, C++14: 5.4.0, 5.5.0, 6.4.0, 7.1.0, 7.3.0, 8.0.1
-
GCC, C++17: 7.3.0, 8.0.1
-
Intel, C++14: 18.0
-
-
OS X:
-
Apple Clang: 9.0.0, 9.1.0, 10.0.0
-
Apple Clang, C++11: 9.0.0, 9.1.0, 10.0.0
-
Apple Clang, C++14: 9.0.0, 9.1.0, 10.0.0
-
Apple Clang, C++17: 9.1.0, 10.0.0
-
Apple Clang, C++1z: 9.0.0
-
Apple Clang, C++2a: 10.0.0
-
-
Windows:
-
GCC: 3.4.5, 4.1.2, 4.2.4, 4.3.3, 4.4.0, 4.5.4
-
GCC, C++0x: 4.6.4
-
GCC, C++11: 4.7.3, 4.8.1, 4.9.3
-
GCC, C++14: 5.1.0, 5.2.0, 5.3.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0
-
GCC, C++17: 7.1.0, 7.2.0, 7.3.0
-
Visual C++: 7.1, 8.0, 9.0, 10.0, 11.0, 12.0, 14.0, 14.1
-
-
FreeBSD:
-
Clang: 4.0.0
-
Clang, C++11: 4.0.0
-
Clang, C++14: 4.0.0
-
Clang, C++1z: 4.0.0
-
Boost's additional test compilers include:
-
Linux:
-
Clang: 3.0, 3.8.1, 3.9.1, 4.0.1, 5.0.2, 6.0.1
-
Clang, C++0x: 3.0
-
Clang, C++11: 3.0, 3.1, 3.2, 3.3, 3.4, 4.0.1, 6.0.1, 7.0.0, 8.0.0
-
Clang, C++14: 3.5.0, 3.6.0, 3.7.1, 3.8.0, 3.9.1, 4.0.0, 4.0.1, 5.0.2, 6.0.1, 7.0.0, 8.0.0
-
Clang, C++17: 5.0.2, 6.0.1, 7.0.0, 8.0.0
-
GCC: 4.4.7, 4.5.3, 4.6.3, 4.9.4, 5.4.0, 5.5.0, 8.0.1
-
GCC, C++0x: 4.4.7
-
GCC, C++11: 4.7.3, 4.8.5, 4.9.4, 5.4.0, 6.4.0, 7.1.0, 8.0.1
-
GCC, C++14: 5.4.0, 5.5.0, 6.3.0, 6.4.0, 7.1.0, 7.3.0, 8.0.1, 8.1.0
-
GCC, C++17: 7.3.0, 8.0.1
-
Intel, C++14: 18.0
-
-
OS X:
-
Apple Clang: 9.0.0, 9.1.0, 10.0.0
-
Apple Clang, C++11: 9.0.0, 9.1.0, 10.0.0
-
Apple Clang, C++14: 9.0.0, 9.1.0, 10.0.0
-
Apple Clang, C++17: 9.1.0, 10.0.0
-
Apple Clang, C++1z: 9.0.0
-
Apple Clang, C++2a: 10.0.0
-
-
Windows:
-
GCC: 3.4.5, 4.1.2, 4.2.4, 4.3.3, 4.4.0, 4.5.4
-
GCC, C++0x: 4.6.4
-
GCC, C++11: 4.7.3, 4.8.1, 4.9.3
-
GCC, C++14: 5.1.0, 5.2.0, 5.3.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0
-
GCC, C++17: 7.1.0, 7.2.0, 7.3.0
-
Visual C++: 7.1, 8.0, 9.0, 10.0, 11.0, 12.0, 14.0, 14.1
-
-
FreeBSD:
-
Clang: 4.0.0
-
Clang, C++11: 4.0.0
-
Clang, C++14: 4.0.0
-
Clang, C++1z: 4.0.0
-
Acknowledgements
Marshall Clow, Michael Caisse and Glen Fernandes managed this release.
