Version 1.79.0
Version 1.79.0
April 13th, 2022 14:22 GMT
| Platform | File | SHA256 Hash |
|---|---|---|
| unix | boost_1_79_0.tar.bz2 | 475d589d51a7f8b3ba2ba4eda022b170e562ca3b760ee922c146b6c65856ef39 |
| boost_1_79_0.tar.gz | 273f1be93238a068aba4f9735a4a2b003019af067b9c183ed227780b8f36062c | |
| windows | boost_1_79_0.7z | 6c97cf4f4a0eb00ed776c88065ab3f59e183fa5e65f6464ff94f92328352d9d6 |
| boost_1_79_0.zip | 3634f9a85759311f321e587eace21799c0d0c946ff933e477a2f98885c54bbff |
Known Issues
These are patches from library authors which were found too late to be fixed in the release.
New Libraries
-
No new libraries.
Updated Libraries
-
Asio:
-
Added
bind_allocator. -
Added
file_base::sync_all_on_writeflag. -
Added missing implementation of
basic_file::release(). -
Added per-operation cancellation support to signal sets.
-
Exposed
recycling_allocatoras part of the public interface. -
Added the
nodiscardattribute to a number of functions. -
Added OpenSSL 3.0 compatibility.
-
Added support for adopting an existing
SSL*into anssl::stream<>. -
Enabled
executor_work_guard<>in all build configurations. -
Enabled movable socket iostreams when using clang.
-
Fixed
bind_cancellation_slotandbind_executorcompatibility with legacy completion tokens. -
Fixed
associatorspecialisations forexperimental::appendandexperimental::prepend. -
Fixed
associated_allocatorprimary template. -
Fixed io_uring implementations of
async_receive_fromfor sockets andwrite_some_atfor files. -
Fixed io_uring feature detection.
-
Fixed
experimental::coro's per-operation cancellation. -
Fixed memory management in
experimental::promise's type-erased completion handlers. -
Fixed move
operator=implementation forssl::stream. -
Fixed
any_io_executorimplementation to work when bothBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULTandBOOST_ASIO_SEPARATE_COMPILATIONare defined. -
Fixed implementation of
basic_socket::at_mark()when using thesockatmark()system call. -
Changed the recycling allocator to use the default alignment as the minimum alignment for allocations.
-
Added a workaround for apparent coroutine codegen bug with Apple's clang.
-
On Windows, changed the file support to open files using the same sharing mode as
fopen(). -
On Linux, fixed UNIX domain sockets implementation to correctly handle
EAGAIN. -
Fixed implementation of
experimental::basic_channel::reset()andexperimental::basic_concurrent_channel::reset(). -
Fixed potential undefined behaviour in the
experimental::promise. -
Changed the
co_spawnimplementation to dispatch cancellation signals through the executor in some circumstances. -
Fixed various header inclusion issues.
-
Fixed various warnings.
-
A number of documentation enhancements, including:
-
Added an overview of Asio's asynchronous model.
-
Reworked reference and requirements documentation in terms of asynchronous model.
-
Updated documentation for
dispatch(),post(), anddefer(). -
Documented per-operation cancellation for serial ports.
-
Clarified the non-concurrency guarantees made for allocators.
-
Reverted the
io_contextreference documentation to useexecutor_work_guard. -
Added more detailed reference documentation to
make_strand(),make_work_guard(),ip::address_v4,ip::address_v6,experimental::basic_channel, andexperimental::basic_concurrent_channel. -
Re-arranged and extended the Overview documentation to cover recently added features.
-
-
Added a C++11 example showing file descriptor passing over local sockets.
-
Added C++14 examples of wrapping callback-based APIs in asynchronous operations.
-
Consult the Revision History for further details.
-
-
Assert:
-
source_location().file_name()andsource_location().function_name()now return""instead of"(unknown)". -
Added a
source_locationconstructor fromstd::source_location. -
Changed
BOOST_CURRENT_LOCATIONto more closely match the behavior ofstd::source_location::current(), such as being usable at top level or as a default function argument.
-
-
Atomic:
-
Fixed compilation for Universal Windows Platform (UWP). (#54)
-
Added
BOOST_ATOMIC_NO_DARWIN_ULOCKconfiguration macro. The macro affects compilation on Darwin systems and disablesulock-based implementation of waiting and notifying operations. This may be useful to comply with Apple App Store requirements. (#55)
-
-
Beast:
-
Added missing include for file_body test.
-
Fixed WebSocket handshake response on failure.
-
Fixed open append mode for
file_posixandfile_win32. -
Fixed file open with append/append_existing flag on Windows
-
Fixed clang-cl UTF8 path handling for
file_win32andfile_stdio. -
Added ARM64 builds to drone CI.
-
Fixed async_base documentation link.
-
Added tests for file open in append/append_existing mode.
-
Updated CI to include gcc 11, clang 12, msvc 14.3.
-
Added individual tests to CMake workflow.
-
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.
-
-
Core:
-
Made
boost::pointer_traitsSFINAE friendly, addressing LWG3545. (Glen Fernandes) -
Added
boost::allocator_traitsthat uses the individual allocator access traits. This implementation supports C++03 and above. (Glen Fernandes) -
Updated the allocator access traits to support most of the C++11 allocator model in C++03. (Glen Fernandes)
-
boost/iterator.hppis deprecated and will be removed in a future release. The header definesboost::iteratortemplate, which is equivalent tostd::iteratorin<iterator>header. However, sincestd::iteratoris itself deprecated in C++17, users are advised to removeboost::iteratororstd::iteratoruse from their code. -
Added
boost::core::verbose_terminate_handler, a utility function intended to be passed tostd::set_terminatethat prints information about the uncaught exception tostderr.
-
-
Describe:
-
Enabled unions in
BOOST_DESCRIBE_STRUCTand updated examples to checkstd::is_union<T>. -
Added example of defining a
fmtlibclass formatter. -
Added example of defining a
fmtlibenum formatter. -
Added example of printing pointers to members.
-
-
Filesystem:
-
v3:
path::replace_extensionnow works in terms of v3 definition ofpath::extensionrather than v4. -
Fixed compilation of path appending and concatenation operators with arguments of types convertible to
pathor compatible string type. (#223) -
On POSIX systems that support
fdopendirandO_NOFOLLOWand on Windows,remove_allis now protected against CVE-2022-21658. The vulnerability is a race condition that allows a third party process to replace a directory that is being concurrently processed byremove_allwith a directory symlink and causeremove_allto follow the symlink and remove files in the linked directory instead of removing the symlink itself. (#224) -
On Windows, in
removeandremove_allimplementation, use POSIX semantics for file removal, when supported by the OS (Windows 10 1709 and later). When POSIX semantics is supported, the file name is removed from the filesystem namespace as soon as the file is marked for deletion, even if it is still open and in use. With legacy Windows semantics, the file name remains present in the the filesystem namespace until the last file handle to the file is closed, which allows the file marked for deletion to be opened and prevents creating new files with the same name. (#216) -
On Windows,
removeandremove_allnow support deleting read-only directories. Support for removing read-only non-directory files was added previously. -
On Windows,
directory_iteratorinternal implementation has been reworked to better utilize modern Windows APIs, which may improve performance while handling symlinks. -
On Windows, initialize internal WinAPI function pointers early, if possible, to allow Boost.Filesystem operations to be invoked in global constructors. This is only supported on MSVC, GCC, Clang and compatible compilers.
-
On Windows,
resize_fileshould no longer fail with an error if the file to be resized is opened. -
Disabled use of the
statxsyscall on Android prior to 11.0 (API version 30). The syscall is blacklisted by seccomp and causes process termination in runtime. (#229) -
Deprecated:
boost/filesystem/string_file.hppheader is deprecated and will be removed in a future release. The header is no longer included byboost/filesystem.hppby default. Users are advised to implement the functionality themselves or migrate to other implementations. -
Deprecated: Windows CE support is deprecated and will be removed in a future release. Windows CE has been untested for many years and is likely non-functional.
-
-
IO:
-
Added
boost::io::basic_nullbuf, a null stream buffer, andboost::basic_onullstream, a null output stream (Glen Fernandes).
-
-
Iterator:
-
In
counting_iterator, added support for built-in 128-bit integer types supported by gcc and clang and compatible compilers on some target platforms. -
Silenced gcc warnings about deprecated implicit copy assignment operator in
counting_iterator.
-
-
JSON:
-
Standalone mode of the library is removed. Users who wish to continue using standalone JSON can switch to the C++ Alliance fork.
-
Add
std::error_codeoverloads. -
Add
boost::source_locationtoerror_codes. -
Add support for JSON Pointer.
-
Naturally grow string during serialization.
-
-
LEAF:
-
Support for FreeRTOS and other embedded platforms
-
Improved diagnostic information
-
Improved configuration macros
-
BOOST_LEAF_CHECK using statement expressions under __GNUC__
-
Fixed symbol demangling bug
-
-
Log:
-
General changes:
-
In
text_file_backend, added support for appending to a previously written log file, when file rotation is used and log file names use file counters. -
Breaking change: The
file_collectorinterface has changed:-
scan_for_filesmethod returns ascan_resultstructure that contains information collected during the scan; -
is_in_storagemethod added for testing if a path refers to a file within the target storage directory.
-
-
Added a new
invoke_manipstream manipulator that can be used for injecting user's function into a stream output expression.
-
-
Bug fixes:
-
Fixed file counter being set to zero if the user calls
text_file_backend::scan_for_filesmultiple times, and the second and the following calls don't find any new files. (#179)
-
-
See changelog for more details.
-
-
Multi-index Containers:
-
Improved the efficiency of
countoperations in ranked indices fromO(log(n) + count)toO(log(n)). Contributed by Damian Sawicki. -
Maintenance work.
-
-
Nowide:
-
Fix compilation issues on some platforms (e.g. GCC 11 on MinGW-w64 and Cygwin)
-
Fix missing include when using
BOOST_USE_WINDOWS_HandWIN32_LEAN_AND_MEAN -
Add sanity check when using
boost::nowide::statwithboost::nowide::stat_t
-
-
Predef:
-
Version 1.14.0
-
Add detection of LoongArch (from Zhang Na).
-
-
QVM:
-
Added constexpr under C++17
-
Improved single header distribution
-
-
Smart Pointers:
-
Added
boost::get_allocator_pointerto obtain the Allocator pointer from the result ofboost::allocate_unique(Glen Fernandes).
-
-
System:
-
Added a
boost::source_locationparameter tothrow_exception_from_error. -
Added
throw_exception_from_erroroverloads forerrc::errc_t,std::error_code,std::errc,std::exception_ptr. -
result<T>::valuenow automatically suppliesBOOST_CURRENT_LOCATIONtothrow_exception_from_errorvia a default argument. -
Added an
errc::make_error_codeoverload taking a source location.
-
-
ThrowException:
-
Added
boost::throw_with_location, a more lightweight alternative ofBOOST_THROW_EXCEPTIONfor programs that do not use Boost.Exception.
-
-
Unordered:
-
All containers have been updated to support heterogeneous
count,equal_rangeandfind. -
All containers now implement the member function
contains. -
erase_ifhas been implemented for all containers. -
All containers have been updated to support heterogeneous
eraseandextract. -
Changed behavior of
reserveto eagerly allocate. -
Various warning fixes in the test suite.
-
Update code to internally use
boost::allocator_traits. -
Switch to Fibonacci hashing.
-
Update documentation to be written in AsciiDoc instead of QuickBook.
-
-
Variant2:
-
Added
operator<<formonostate.
-
-
Wave:
-
C++11 now required for building Wave itself
-
Fixed bugs:
-
#135: Comma operators in array subscripts are deprecated in C++20
-
#137: Simple unknown directive => found_unknown_directive is not called, stripped of pound.
-
#138: Empty ifdef block does not emit line directive for missing whitespace
-
#143: Parsing __has_include() fails with trailing tokens
-
#145: Sanitizer complains about reset_version()
-
#147: bitwise operations between different enumeration types are deprecated
-
-
Updated Tools
-
Build:
-
Includes release of B2 version 4.8.2.
-
Compilers Tested
Boost's primary test compilers are:
-
Linux:
-
Clang: 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 12.0.0
-
Clang, C++11: 3.4, 11.0.0
-
Clang, C++14: 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 5.0, 12.0.0
-
Clang, C++17: 6.0.1, 7.0.0, 8.0.0, 9.0.0, 10.0.0, 11.0.0, 12.0.0
-
Clang, C++20: 11.0.0, 12.0.0, 13.0.0
-
GCC: 4.6.3, 11
-
GCC, C++11: 4.7.3, 4.8.5, 11
-
GCC, C++14: 5.4.0, 6.4.0, 7.3.0, 8.0.1, 9.1.0, 11
-
GCC, C++17: 7.3.0, 8.0.1, 9.1.0, 11
-
GCC, C++20: 8.0.1, 9.1.0, 10, 11
-
-
OS X:
-
Apple Clang: 11.0.3
-
Apple Clang, C++11: 11.0.3
-
Apple Clang, C++14: 11.0.3
-
Apple Clang, C++17: 11.0.3
-
Apple Clang, C++20: 11.0.3
-
-
Windows:
-
Visual C++: 10.0, 11.0, 12.0, 14.0, 14.1, 14.2
-
Acknowledgements
Marshall Clow, Michael Caisse and Glen Fernandes managed this release.
