New libraries
Introduces json, leaf, and pfr offering JSON handling, error handling, and reflection without macros.
Your code depends on Boost. Boost depends on you.
Boost's 180+ libraries are free, peer-reviewed, and kept running by a small group of maintainers. Help fund the work behind every release. Your gift is tax-deductible.
Introduces json, leaf, and pfr offering JSON handling, error handling, and reflection without macros.
Asio reduces timer lock contention, atomic adds SSE2/SSE4.1 lock pool, and filesystem uses statx for faster metadata queries.
Added six new dependencies across four libraries and removed one dependency from a library.
Numerous bug fixes and stability patches across Asio, Atomic, Filesystem, and other components improve reliability.
boost::none is now constexpr, preprocessor adds BOOST_PP_IS_STANDARD, and several libraries gain C++20 constexpr support.
December 11th, 2020 19:50 GMT
Boost.Operators is currently incompatible with C++20 compilers, which in some cases may manifest as an infinite recursion or infinite loop in runtime when a comparison operator is called. The problem is caused by the new operator rewriting behavior introduced in C++20. As a workaround, users are advised to target C++17 or older C++ standard. More details can be found in #65.
ip::basic_resolver.
experimental::as_single
completion token adapter.
MSG_NOSIGNAL
on more platforms by using _POSIX_VERSION
to detect whether it is supported.
executor
concept to test for a const-qualified execute().
any_executor
support for builds without RTTI support.
thread_pool
unit test to work without RTTI support.
asio::query.
push/pop_options.hpp
includes.
any_executor
comparisons and conversion.
strand<>
adaptation of Networking TS executors when targeting older C++ versions
or less conformant compilers.
BOOST_ASIO_ENBALE_HANDLER_TRACKING
compile flag from Boost.Asio:
devector
container.
endian_arithmetic
no longer inherits from endian_buffer
BOOST_ENDIAN_NO_CTORS
is defined, the unaligned endian_buffer
and endian_arithmetic
are C++03 PODs, to enable use of __attribute__((packed))
creation_time
operation, which allows to obtain file creation time. (Inspired by
PR#134)
last_write_time(p, ec) operation in case of failure has
been changed to a minimal value representable by std::time_t
instead of -1.
hard_link_count(p, ec) operation in case of failure has
been changed to static_cast<uintmax_t>(-1) instead of 0.
file_size
will now indicate error code errc::function_not_supported
if the path resolves to a non-regular file. Previously, errc::operation_not_permitted was reported.
statx
system call internally, when possible, which allows to reduce the
amount of information queried from the filesystem and potentially
improve performance. The statx
system call was introduced in Linux kernel 4.11.
const-qualification
from return types of some path
methods. This could prevent move construction and move assignment
at the call site in some cases. (#160)
statvfs
system call to obtain filesystem space information. (Inspired by
PR#162)
space
now returns with an error if the provided path does not idendify
an existing file. (#167)
text_file_backend when generating
the target file name (based on the pattern set by set_target_file_name_pattern
method) when the log file is rotated. (#125)
basic_sink_frontend
with an atomic. (#128)
asynchronous_sink
frontend, resolved a possible conflict between flush and run
methods, if run
is called from a user's thread instead of the internal dedicated
thread spawned by the frontend. (#131)
mp_pairwise_fold
(suggested by Barry Revzin)
mp_invoke
(use mp_invoke_q)
boost::none is constexpr-declared.
OUTCOME_ENABLE_LEGACY_SUPPORT_FOR
to less than 220
to enable emulation.
OUTCOME_GCC6_CONCEPT_BOOL.
Older GCCs had boolean based concepts syntax, whereas newer
GCCs are standards conforming. However the precise logic of
when to use legacy and conforming syntax was not well understood,
which caused Outcome to fail to compile depending on what options
you pass to GCC. The new logic always uses the legacy syntax
if on GCC 8 or older, otherwise we use conforming syntax if
and only if GCC is in C++ 20 mode or later. This hopefully
will resolve the corner case build failures on GCC.
BOOST_NO_EXCEPTIONS
defined. Thanks to Emil, maintainer of Boost.Exception, making
a change for me, Boost.Outcome should now compile with C++
exceptions globally disabled. You won't be able to use boost::exception_ptr as it can't
be included if C++ exceptions are globally disabled.
final_suspend() was not noexcept,
despite being required to be so in the C++ 20 standard. This
has been fixed, but only if your compiler implements noop_coroutine. Additionally,
if noop_coroutine
is available, we use the much more efficient coroutine handle
returning variant of await_suspend() which should significantly
improve codegen and context switching performance.
event_comparison_type,
vertex_equality_predicate_type,
and voronoi_predicates.
(Glen Fernandes)
operator==
rewriting rules. (Glen Fernandes)
windows_error.hpp,
linux_error.hpp, and cygwin_error.hpp
emit deprecation messages and are slated for removal.
generic_category() and system_category() emit deprecation messages and are
slated for removal.
error_condition::failed is deprecated and is slated
for removal. operator bool()
for error_condition
has been reverted to its old meaning of value() != 0. This is done for compatibility with
std::error_condition as the next release
is expected to improve interoperability with <system_error>
even further. Note that this does not
affect error_code::failed,
which is still alive and well.
error_condition::message
that takes a buffer is deprecated and is slated for removal, for
the same reasons. Note that this does
not affect error_code::message.
Boost's primary test compilers are:
Boost's additional test compilers include:
Marshall Clow, Michael Caisse and Glen Fernandes managed this release.
Boost is publicly released three times a year in April, August, and December. Each release has updates to existing libraries, and any new libraries that have passed the rigorous acceptance process.
Achievements capture your contributions to Boost — automatically tracked where possible, manually verified for high-value activities.
Badges recognize your journey on Boost — from the contributions you make to the time you've invested and the milestones you've reached along the way.