Up to [cvs.NetBSD.org] / pkgsrc / meta-pkgs / boost
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
boost: updated to 1.83.0 1.83.0 New Libraries Compat: A repository of C++11 implementations of standard components added in later C++ standards, from Peter Dimov and contributors. Updated Libraries Any: New boost::anys::unique_any C++11 class - an alternative to boost::any (or to std::any) that does not require copy or move construction from the held type. Ported documentation to Quickbook, Doxygen comments now used in code. Atomic: Fixed compilation of atomic_ref for const-qualified types. Note that even const-qualified atomic objects must still reside in read-write memory. Chrono: Remove use of deprecated Boost.Ratio features. Compat: Added latch.hpp, an implementation of std::latch (contributed by Christian Mazakas.) Added shared_lock.hpp, a (partial) implementation of std::shared_lock (contributed by Christian Mazakas.) Core: Added support for incomplete types to boost::core::type_name. Bit manipulation functions in boost/core/bit.hpp are now constexpr on recent MSVC versions (VS2019 update 5 and later.) Added boost::core::byteswap (an implementation of std::byteswap from C++23) to boost/core/bit.hpp. Moved the yield primitives sp_thread_pause, sp_thread_yield, sp_thread_sleep from SmartPtr implementation details to boost/core/yield_primitives.hpp. DLL: Fixed tests failures on glibc 2.36+, thanks to [Đoàn Trần Công Danh](https://github.com/sgn) for the bugreport. Filesystem: Added directory_entry::refresh method that updates internal cached file statuses for the directory entry identified by path. v4: directory_entry constructors and modifiers that initialize or modify the path now automatically call refresh. This may result in errors that were not indicated before and in v3, if querying the filesystem for file statuses fails (e.g. if the file does not exist). This new behavior is similar to std::filesystem. v4: directory_entry constructors and methods taking file_status parameters are removed. Users are recommended to remove these arguments and rely on directory_entry calling refresh internally. Added directory_entry member methods for checking the file type of the file, similar to std::filesystem. Added more methods for testing file status: is_block_file, is_character_file, is_fifo, is_socket and is_reparse_file. recursive_directory_iterator is now more likely to reuse information about the file type that is obtained during filesystem iteration. This may improve performance. File streams defined in boost/filesystem/fstream.hpp are now movable, if the standard library file streams are. Added a new header boost/filesystem/cstdio.hpp with a portable fopen overload that takes path as the first argument. This function is equivalent to std::fopen, except that on Windows it uses the native wide character encoding for paths. Generic path comparison operators are now more restricted to avoid potential ambiguities when user's code contains a using namespace boost::filesystem; directive. Fixed potential overload resolution ambiguity in users' code, where path constructors from iterators could interfere with function overloads taking a std::initializer_list argument. On Windows, added more workarounds for errors returned by various filesystems when creating a directory iterator. On Windows, relaxed access rights needed for querying file times. Flyweight: Added smart-pointer syntax to boost::flyweight (operator* and operator-> dereferencing to the underlying value). Fixed a situation where the mutex used by simple_locking was not recursive. Geometry: Improvements Drop dependencies and replace boost with std in several places Add missing headers so that all headers compile independently complying with Boost policy Check const Ring concept in calculate_point_order Solved issues Fix for union Fix for different geometry types Fix for convex hull Fix within algorithm for geometries having a pole as a vertex Various fixes of errors and warnings Iterator: Added is_iterator type trait that allows to test whether the type qualifies as an iterator type. filter_iterator now supports move-construction of the adopted iterator and the function object. JSON: The library now only throws system_error, except for when allocation failed, in which case std::bad_alloc is thrown. Serialization behavior can now be changed by serialize_options. Contextual conversions. Parser option for more precise number parsing. Support parse_options in stream operator<<. Parser option to allow Infinity and NaN JSON literals. Parser mode that only validates numbers rather than parsing them. Numbers with exponent larger than INT_MAX are accepted by the parser and treated as infinity. Fix object member functions that should provide strong guarantee. Fix ambiguity of end call when boost/range.hpp is included. Fix ASan failures. Fix error message for error::size_mismatch. Fix conversion into tuple with const elements. Locale: Bitwise/binary operators (left/right shift, binary and/or/xor/not) are no longer supported in message catalog files matching GNU gettext behavior Std backend on Windows uses the classic locale instead of the system locale when the requested locale does not exist (now same as on other OSs) localization_backend_manager::get is deprecated, use the generator instead New converter classes as alternative to to_utf/from_utf/between Fix UB on invalid index in format strings Fix conversion of UTF to e.g. iso-2022-jp on Windows without ICU Use long long as the count parameter for pluralized translations Fix movability and exception specification for some classes Log: Fixed a possible infinite loop in text_file_backend, when the size of a formatted log record exceeds the rotation_size limit. Math: Added Numerical evaluation of Fourier transform of Daubechies scaling functions 921. Added logcdf function to statistical distributions 946. Added support for C++23's <stdfloat> types 978. Fixed various -Wmaybe-uninitialized warnings Fixed round and trunc functions for non-representable numbers 968. Fixed calculation of mode for F-distribution 976. Fixed overflow in beta distribution 977. Fixed overflow in hypergeometric distribution 987. Fixed calculation of median absolute deviation with non-zero center 997. Mp11: Added an offset/from parameter to mp_from_sequence, mp_iota, mp_iota_c. Added mp_value, mp_list_v, mp_rename_v, mp_is_value_list. Added value list support to the primitives in <boost/mp11/list.hpp>. Added value list support to mp_repeat, mp_fill, mp_at, mp_back, mp_take, mp_pop_back, mp_drop, mp_insert, mp_erase. Multi-index Containers: Updated range insert in non-unique ordered indices to preserve insertion order of equivalent elements. Serialization now uses std::size_t instead of unsigned long to save and load the size of a multi_index_container (unsigned long is smaller than std::size_t in LLP64 data models). multi_index_container serialization class version has been bumped from 3 to 4 to reflect this change. Multiprecision: Fixed bug in rational adapter division 542. Fixed handling of global precsion changes in multi-threaded environments 552. Fixed cpp_int::eval_convert_to noexcept specification 555. MySQL: Major update. Stored procedures are now fully supported, including SELECT statements producing data and procedures with OUT parameters. Added support for multi-queries, which allows running multiple semicolon-separated statements with a single call. A statically-typed interface has been added, which allows parsing query results into user-provided types, using Boost.Describe structs and tuples. Text queries and prepared statements can now be executed using the new connection::execute and connection::start_execution functions (and their async counterparts). These superseed connection::query, connection::execute_statement, connection::start_query and connection::start_statement_execution. The new functions allow access to new features, like the static interface. A separate compilation mode has been added to help reduce build times. Sources are included in boost/mysql/src.hpp, which must be included in exactly one translation unit. Prepared statements can now be executed using an iterator pair to specify parameters, using statement::bind and connection::execute. This enables use cases where the number and type of parameters is not known at compile-time. Prepared statement execution now accepts parameters of type bool, std::optional and boost::optional. Added error codes and verified compatibility with MySQL v8.0.33 and MariaDB v11.0. Fixed potential problems with Windows' min() and max() macros. All assertions now use Boost.Assert. All exceptions are now thrown via Boost.ThrowException. Immediate completions are now correctly dispatched through the I/O object executor. Ratio: Change default BOOST_RATIO_VERSION to 2. Support for BOOST_RATIO_EXTENSIONS is now deprecated and will eventually be removed when Boost.Ratio is implemented in terms of the standard <ratio> header. Test: Added addtional older platforms to CI system (e.g. GCC 4.6) Fixed handling of uintptr_t to make sure it is portable on 32-bit systems 353. Fixed warnings from -Wdeprecated-copy-dtor and -Wdeprecated-copy-with-user-provided-dtor 375. Fixed handling of check_is_close for C++23 <stdfloat> types 382. Timer: Remove dependency on Boost.Chrono, Boost.System, and others. Disable deprecated headers unless BOOST_TIMER_ENABLE_DEPRECATED is defined. Unordered: Major update. Added boost::concurrent_flat_map, a fast, thread-safe hashmap based on open addressing. Sped up iteration of open-addressing containers. In open-addressing containers, erase(iterator), which previously returned nothing, now returns a proxy object convertible to an iterator to the next element. This enables the typical it = c.erase(it) idiom without incurring any performance penalty when the returned proxy is not used. URL: parse_query does not recreate string_view. url_view/string_view constructor requires non-url_view_base. IP-literal can be IPv6addrz. UUID: Improved generated x86 code for AVX targets. Removed the use of lddqu instruction on SSE3 targets, which penalize performance on Intel NetBurst CPUs but is more optimal on Skylake and later CPUs. Variant2: Added uses_double_storage(). Updated Tools Build: Includes release of B2 version 4.10.1.
*: recursive bump for Python 3.11 as new default
boost: Update to 1.81.0
Changelog:
Version 1.81.0
New Libraries
* URL: A library for parsing, modifying, and printing URLs using only C++11,
from Vinnie Falco and Alan de Freitas. Features include fast compilation,
strong invariants, and strict compliance using a memory-friendly approach.
Updated Libraries
* Asio:
+ Added the consign completion token adapter, which can be used to attach
additional values to a completion handler.
+ Added any_completion_handler<>, which can be used to type-erase
completion handlers.
+ Added experimental::co_composed to enable lightweight implementations
of user-defined asynchronous operations using C++20 coroutines.
+ Add range-based experimental::make_parallel_group() overloads.
+ Added any_completion_executor, a type-erased wrapper for executors that
are associated with completion handlers.
+ Added missing context query to use_future's executor.
+ Added nothrow constructor overloads to execution::any_executor<> and
any_io_executor.
+ Optimised representation of empty execution::any_executor objects to
improve the performance of copy and move operations.
+ Added an associated_cancellation_slot specialisation for std::
reference_wrapper.
+ Changed I/O objects to return their executors by const reference.
+ Changed associated to use deduced return types for all two-argument get
functions.
+ Fixed spawn implementation to catch unhandled exceptions and rethrow
them outside of the spawned "thread".
+ Fixed spawn to ensure the completion handler is dispatched through the
correct executor.
+ Fixed cleanup of of terminal-state spawn "thread" objects.
+ Fixed spawn and co_spawn implementations to dispatch cancellation
handlers on the correct executor.
+ Changed semantics of 'dispatch' to mean the executor is used as-is.
+ Deprecated the execution::execute customisation point and sender/
receiver facilities.
+ Added a C++11 parallel_group example.
+ Fixed example code to not use the deprecated resolve conversions.
+ Fixed an ambiguity in experimental::channel_traits specialisations.
+ Added a specialised channel implementation for the for R(error_code)
signature.
+ Made cancelled() public on the async_compose 'self' object.
+ Added io_executor_type and get_io_executor to the async_compose 'self'
object.
+ Fixed implementation of release() for Windows overlapped handles.
+ Enabled deferred awaiting for experimental::coro, regularised
experimental::use_coro, and fixed allocator handling.
+ Cleaned up experimental::promise and made it an asynchronous operation
object.
+ Constrained post/defer overloads on ability to require blocking.never.
+ Changed descriptor implementation to fall back to fcntl if ioctl fails
with ENOTTY when setting non-blocking mode.
+ Fixed Xcode deprecation warnings related to use of sprintf.
+ Fixed the arguments passed to select_reactor::run when it is run on an
internal thread.
+ Fixed compilation errors when BOOST_ASIO_DISABLE_SMALL_BLOCK_RECYCLING
is defined.
+ Updated detection of C++20 coroutine support on clang 14 and later.
+ Changed standard library feature detection to always enable std::
invoke_result when targeting C++17 or later.
+ Fixed detection of return type deduction with MSVC.
+ Updated the asynchronous operation requirements to relax the
requirements on the associated executor.
+ Added io_uring to the implementation notes.
+ Consult the Revision History for further details.
* Beast:
+ Add buffers_generator
+ Add beast::http::message_generator
+ Added buffer_ref, so beast buffers can be used with asio.
+ Support for per-operation cancellation
+ C++20 awaitable examples.
+ websocket per-message compression options
+ websocket timeout option api
+ multiple content length error
+ Support for default-completion and rebind
* Container Hash:
+ Major update.
+ The specializations of boost::hash have been removed; it now always
calls hash_value.
+ Support for BOOST_HASH_NO_EXTENSIONS has been removed. The extensions
are always enabled.
+ All standard containers are now supported. This includes std::
forward_list and the unordered associative containers.
+ User-defined containers (types that have begin() and end() member
functions that return iterators) are now supported out of the box.
+ Described structs and classes (those annotated with
BOOST_DESCRIBE_STRUCT or BOOST_DESCRIBE_CLASS) are now supported out of
the box.
+ hash_combine has been improved.
+ The performance (and quality, as a result of the above change) of
string hashing has been improved. boost::hash for strings now passes
SMHasher in 64 bit mode.
+ The documentation has been substantially revised to reflect the
changes.
* Core:
+ empty_value members are now marked as constexpr.
+ Added fclose_deleter, a deleter that calls std::fclose on a pointer to
std::FILE.
+ Bit manipulation utilities in boost/core/bit.hpp now explicitly require
unsigned integers on input. (#129)
+ bit_width now returns int instead of a value of the input argument
type. This follows resolution of LWG3656.
* Describe:
+ To allow the inclusion of enumerators.hpp, bases.hpp, and members.hpp
when the option -pedantic is used, the invocation of
BOOST_DESCRIBE_ENUM has been moved from modifiers.hpp into a separate
header, modifier_description.hpp. As a consequence, modifiers.hpp no
longer includes enum.hpp. Code that has been relying on this implicit
inclusion may fail, and will need to be fixed to include enum.hpp.
* DLL:
+ Fixed path_from_handle implementation for Windows platforms, thanks to
@SaltfishAmi for the bug report 57.
* Filesystem:
+ Deprecated: path construction, assignment and appending from containers
of characters, such as std::vector<char> or std::list<wchar_t>, is
deprecated in v3 and removed in v4. Please use string types or
iterators instead.
+ Deprecated: boost/filesystem/path_traits.hpp header is deprecated and
will be removed in a future release. The header contained
implementation details of path and should not be used in user's code.
+ Previously deprecated APIs will now generate compilation warnings on
use. To suppress these warnings, BOOST_FILESYSTEM_ALLOW_DEPRECATED
macro can be defined when compiling user's code.
+ Fixed compilation due to a missing include on POSIX systems that do not
support *at APIs. (#250)
+ On Windows prior to 10, added a workaround for network share filesystem
that produces ERROR_INVALID_PARAMETER when constructing directory
iterators. (PR#246, #245)
+ On Windows, fixed weakly_canonical failing with an
ERROR_INVALID_FUNCTION error code if the path started with the "\\?\"
prefix. (#247)
+ Added support for std::string_view, boost::string_view and boost::
container::string (as well as respective wchar_t counterparts) in path
constructors, assignment and appending operations. (#208)
+ path constructors, assignment and appending operations taking a pair of
iterators will no longer accept iterators with value types that are not
one of the supported path character types.
+ On Windows, improved compatibility of directory_iterator with various
mounted filesystems and Wine releases prior to 7.21. (#255, #266)
+ On Windows, deduplicated files are now reported as regular files rather
than reparse files. (#262)
* Fusion:
+ Added fusion::identity_view (PR#240)
+ Added support for associative sequences on fusion::transform_view (PR#
239)
+ Fixed compilation for the case when fusion::reverse_view used with an
associative sequence (PR#237)
+ Fixed Clang 13 -Wdeprecated-copy warnings (PR#261)
+ A small dependency reorganization. Now boost::ref and boost::
noncopyable are used from Boost.Core (PR#249)
+ Added CI testing on Linux and MacOS for clang and gcc, fixed CI testing
on Windows (PR#245, PR#236)
+ Improved docs and fixed typos (#234, PR#235, PR#238)
* Geometry:
+ Solved issues
o #1048 Index: Fix dangling references when Indexable is returned by
value by IndexableGetter
o #1076 Union: in rare cases it might miss one polygon
o #1081 Union: due to precision it might miss interior rings
+ Bugfixes
o #1063 Intersection: fix a bug in intersection of simple spherical
polygons
o #1064 Formulas: fix a consistency issue in geodesic direct formulas
o #1088 Point: Fix regression for custom point types
o Various fixes for missing include files, warnings, C++20
compilation errors and documentation
* Histogram:
+ Major update.
+ Added new accumulators::fraction to compute fractions, their variance,
and confidence intervals
+ Added interval computers for fractions: utility::clopper_pearson,
utility::wilson_interval, utility::jeffreys_interval, utility::
wald_interval which can compute intervals with arbitrary confidence
level
+ Added utility::confidence_level and utility::deviation types to pass
confidence levels as probabilities or in multiples of standard
deviation for all interval computers, respectively
+ Fixed internal sub_array and span in C++20
* Iterator:
+ function_output_iterator now supports perfect forwarding of the
assigned values to the wrapped function object. (PR#73)
+ Fixed compilation of constructing a function_input_iterator from result
of post-incrementing another function_input_iterator. (#75)
+ The result of post-incrementing an iterator based on iterator_facade
now supports operator->. (it++)->foo is equivalent to (*it++).foo,
which was supported before.
* JSON:
+ Added object::stable_erase.
+ Added parse overload for std::istream and operator>> for value.
+ Added rvalue ref-qualified accessors for value.
+ Conversion traits were redesigned.
+ Added conversion support for described classes and enums, std::optional
, std::variant, and null-like types (including std::nullptr_t, std::
nullopt_t, and std::monotype).
+ Added non-throwing conversion from value to user types.
* LexicalCast:
+ Fixed compilation while casting volatile arithmetic types. Thanks to
Giovanni Cerretani for the bug report #50.
+ Removed usage of deprecated headers. Thanks to Michael Ford for the PR
PR#53.
* Locale:
+ Major update with some breaking changes.
+ C++11 support is now required, support for C++03 and earlier is dropped
+ Some enums have been converted to enum classes - Avoids name clashes
+ Replace -sICU_LINK_LOCALE & -sICU_LINK by fine-grained configuration
options as done in Boost.RegEx
+ Fix detection of libiconv allowing Boost.Locale to be build (again) on
some platforms
+ Remove use of and support for std::auto_ptr
+ Make the codecvt using wchar_t on Windows assume/use UTF-16 enconding
+ Performance improvements: Make basic_format, date_time & hold_ptr
movable, Fix use of format cache
+ Make Boost.Locale compatible with more ICU versions (especially the
tests)
+ Fix RTTI definitions for some classes (visibility issues)
+ Fix compatibility of the ICU backend with some libc++ versions
+ Fix return value of some operators to correctly return non-const *this
+ Fix int-overflow on negative roll of years in date_time
+ Handle or suppress many warnings which makes the build log cleaner
+ Add support for more Windows codepages
+ Fix support for Windows codepages like ISO-2022-JP
* Nowide:
+ Fix build failure of tests on MSVC
* Stacktrace:
+ The library does not use COM initialization any more. Thanks to Alex
Guteniev for the bug report, clarifications and PR PR#123!
+ The library now may use BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE macro
value while detecting the libbacktrace availability in b2, thanks to
Ben Gemmill for the bug report #115.
+ Added BOOST_STACKTRACE_BACKTRACE_FORCE_STATIC macro to force a single
backtrace_state static instance while using the libbacktrace. Thanks to
the Rasmus Thomsen for the bug report #118!
+ Avoid unresolved references when including only the boost/stacktrace/
stacktrace.hpp header. Thanks to the Long Deng for the bug report #116.
+ Optimized stacktrace printing by not calling strlen on Windows
platforms. Thanks to Alex Guteniev for the bug report #122
* PFR:
+ Improved detection of aggregate initializables in C++14 mode, thanks to
Denis Mikhailov for the PR PR#97.
+ Suppress clang-tidy warnings, thanks to Alexander Malkov for the PRs PR
#109, PR#104.
+ Use fold expressions if they are supported by the compiler. Thanks to
Jean-Micha?l Celerier for the PR PR#96.
* STLInterfaces:
+ Fix two ill-formed iterator_interface operators in pre-C++20 iterators
with a const value_type.
* System:
+ The macro BOOST_SYSTEM_DISABLE_THREADS can now be defined to disable
the use of <mutex> (e.g. on single-threaded libstdc++).
+ Added value_type, error_type, in_place_value, in_place_error to result
<>.
+ Added emplace to result<>.
* Unordered:
+ Major update.
+ Added fast containers boost::unordered_flat_map and boost::
unordered_flat_set based on open addressing.
+ Added CTAD deduction guides for all containers.
+ Added missing constructors as specified in LWG issue 2713.
* Variant:
+ Avoid recursive inclusion of headers, thanks to Nathan Sidwell for the
bug report #101.
+ Removed usage of deprecated headers, thanks to Michael Ford for the PR
PR#96.
+ Fixed compilation on clang in C++23 mode, thanks to Ed Catmur for the
PR PR#98.
* Variant2:
+ Added support for boost::json::value_from and boost::json::value_to.
Version 1.80.0
Known Issues
These are patches from library authors which were found too late to be fixed in
the release.
* Config
+ Support for libcpp15 which removes std::unary_function and std::
binary_function. Patch.
* Filesystem
+ Directory iterators may fail to construct for a network share on
Windows prior to 10, see PR#246 and #245. Patch.
+ On Windows, weakly_canonical fails to process paths that start with the
"\\?\" prefix, see #247. Patch.
+ On POSIX systems that don't support *at APIs, compilation fails due to
a missing include, see #250. Patch.
* Unordered
+ Containers are not in a valid state after moving, see #139. Patch.
+ Fix MSVC /RTCc build runtime failures. Patch.
New Libraries
* No new libraries.
Updated Libraries
* Asio:
+ Added a deduced trailing return type to all asynchronous operations, to
enable the new form of async_result for C++11.
+ Moved append, prepend, as_tuple, and deferred to the boost::asio
namespace, and made them compatible with C++11.
+ Made experimental::parallel_group compatible with C++11.
+ Added buffer() overloads for contiguous containers, such as std::span.
+ Added the ability for awaitable<>-based coroutines to directly co_await
operations that are packaged as function objects.
+ Changed spawn() to be a completion token-based asynchronous operation,
and added support for cancellation. The basic_yield_context token now
supports move-only and variadic result types. When targeting C++11 and
later, spawn() and basic_yield_context are implemented in terms of
Boost.Context directly.
+ Added the is_async_operation trait and async_operation concept.
+ Added the completion_signature_of trait.
+ Added converting move construction/assignment to posix descriptors,
serial ports, pipes, Windows object_handle, Windows stream handles, and
Windows random-access handles.
+ Added release() member functions to pipes, Windows stream handles, and
Windows random-access handles.
+ Enabled support for Endpoint implementations that return void pointers
from their data() member functions, as per the documented Endpoint type
requirements.
+ Removed all() and race() from experimental::promise, as experimental::
parallel_group covers this functionality.
+ Added source locations to exceptions and error codes produced by the
synchronous and asynchronous operations.
+ Fixed compatibility with OpenSSL 3.0.4 and later.
+ Fixed compatibility with with -masm=intel.
+ Explicitly stated that socket shutdown() calls are thread-safe with
respect to certain other synchronous operations on the same socket.
+ Optimised the move construction of I/O objects where only the executor
type differs.
+ Fixed the detection of std::invoke_result for clang/libc++.
+ Fixed an issue where experimental::parallel_group initiation
incorrectly moved arguments instead of forwarding them.
+ Fixed a sequencing issue in the implementation of post(), dispatch(),
and defer().
+ Fixed the awaitable<> implementation to propagate exceptions from
awaited initiation functions through the current completion handler.
+ Fixed detection of std::aligned_alloc with gcc 7.
+ Changed to avoid using the soon-to-be-deprecated std::aligned_storage
on newer compilers.
+ Fixed detection of std::aligned_alloc for older Apple platforms.
+ Removed faulty assertions from experimental::coro implementation.
+ Added defence against Qt-defined macros when building with Intel C++.
+ Changed the implementation of the select_reactor, on Windows, to ensure
that any exception resulting from failure to recreate its interrupter's
sockets will be allowed to propagate out through io_context::run().
+ Fixed various compiler warnings.
+ Updated all composed operations examples, and the C++11 timeouts
example, to use the new async_result form.
+ Added composed operation and coroutine examples for C++20.
+ Consult the Revision History for further details.
* Atomic:
+ Improved portability of endianness checks on ARM, AArch32 and AArch64
targets. (#59)
+ Fixed compilation with MSVC 14.0 (Visual Studio 2015) in C++17 mode. (#
61)
* Filesystem:
+ On Windows, added a fallback implementation for querying file
attributes in case if the file cannot be opened with
ERROR_ACCESS_DENIED error. This may allow status and symlink_status to
succeed for system files and directories that are not reparse points or
symlinks. (#234)
+ On Windows, added a workaround for FAT/exFAT filesystems that produce
ERROR_INVALID_PARAMETER when querying file attributes. This affected
status and symlink_status, which reported that files do not exist, and
directory iterators, which failed to construct, as well as other
dependent operations. (#236, #237)
+ Worked around a compilation problem on RTEMS. (PR#240)
+ On Linux, corrected switching to sendfile copy_file implementation if
copy_file_range failed with ENOSYS in runtime. The sendfile fallback
implementation used to skip the filesystem type check and could fail
for some filesystems.
+ On POSIX systems supporting openat and related APIs defined in
POSIX.1-2008 and on Windows Vista and later, improved protection of
remove_all against CVE-2022-21658 that was implemented in the previous
release. The previous fix could still result in removing unintended
files in certain conditions. Other systems remain vulnerable.
* GIL: NOTICE: We are planning BREAKING switch to C++17 as minimum required
C++ language version in one or two releases after Boost 1.80 (#676)
+ Added
o GSoC 2020: Added Perona-Malik anisotropic diffusion algorithm (PR#
500)
o GSoC 2020: Added histogram class and related functionality (PR#499)
o GSoC 2020: Added histogram equalization feature (PR#514)
o GSoC 2020: Added histogram matching algorithm (PR#515)
o GSoC 2020: Added ability to stack images either horizontally (
hstack) or vertically (vstack) (PR#506)
o GSoC 2020: Added adaptive histogram equalization algorithm (PR#516)
o GSoC 2020: Added Standard Hough Transform and circle rasterization
(PR#512)
o GSoC 2020: Added Bresenham's algorithm for line rasterization (PR#
512)
o GSoC 2021: Added rotation of image by arbitrary angle around its
center (PR#565)
o GSoC 2021: Added rasterization support for ellipse based on "An
Efficient Ellipse-Drawing Algorithm" by Jerry Van Aken (PR#585)
o Added image constructor from compatible view (PR#520)
o Added inverse function for affine matrix3x2 (PR#527)
o Added standard morphological transformations (PR#541)
o Added for_each_pixel overload for any_image (PR#648)
o Added C++17 polymorphic memory resource typedefs for image class (
PR#529)
+ Changed
o BREAKING: The required minimum C++ version is changed from from
C++11 to C++14. Currently, large parts of GIL still compile with a
C++11 compiler. However, there is no guarantee that it stays that
way, and any compilers that do not support at least C++14 are
considered unsupported as of now.
o BREAKING: any_color_converted_view() is deprecated and will be
removed in the next release. Use color_converted_view() instead,
which provides the same feature.
o BREAKING: apply_operation for any_image is deprecated and will be
removed in the next release. Use variant2::visit instead, which
provides the same feature. (PR#656)
o Moved numeric extension to core (PR#573)
o Added support for C++17's <filesystem> (PR#636) The availability of
the std::filesystem is detected automatically, unless the
BOOST_GIL_IO_USE_BOOST_FILESYSTEM macro is defined that forces the
preference of the Boost.Filesystem.
o Renamed pixel_multiply_t to pixel_multiplies_t and pixel_divide_t
to pixel_divides_t (PR#655)
o Renamed io/dynamic_io_new.hpp to io/detail/dynamic.hpp (PR#653)
o Moved function construct_matched into boost::gil::detail namespace
as it was only used by other implementation details (PR#653)
o Made packed_pixel trivially copyable and assignable (PR#679)
o Replace deprecated libtiff v4.3 typedefs with C99 fixed-size
integers (PR#685)
+ Removed
o BREAKING: Removed support for GCC 5 (PR#572)
o Removed deprecated.hpp (PR#627)
+ Fixed
o Fixed conversion from RGB to HSL (PR#505)
o Fixed conversion from RGB to signed CMYK (PR#522)
o Removed unnecessary numeric cast in hsv.hpp (PR#530)
o Fixed default constructor for homogeneous_color_base for reference
pixel elements (PR#542)
o Fixed returning reference to local temporary object in
subchroma_image_view (PR#556)
o Added missing header guards in diffusion.hpp (PR#568)
o Fixed any_image_view<>::const_t (PR#526)
o Fixed C++20 incompatibilities in I/O extensions (PR#617)
o Ensured all examples build without errors (PR#628)
o Fixed convolve_2d for images with float32_t channel model (PR#577)
o Fixed for_each_pixel for non-1d iterable views (PR#621)
o Fixed: is_equal_to_sixteen in PNG I/O was less-than test (PR#650)
o Re-allow devicen_t with two components (PR#654) It was
unintentionally removed in Boost 1.72
o Fixed memory leak in image class for empty dimensions (PR#649)
+ Acknowledgements
o Cypre55, Samuel Debionne, Mike-Devel, Edward Diener, Peter Dimov,
Omar Emara, Dhruva Gole, Nicolas Herry, Eugene K, Avinal Kumar,
Gaurav Kumar, Marco Langer, Pranam Lashkari, Mateusz ??oskot,
Giovanni Mascellani, Debabrata Mandal, Gopi Krishna Menon, Ren??
Ferdinand Rivera Morell, Felix Morgner, Harshit Pant, Paul92, Andr
?? Schr?der, Scramjet911, Siddharth, Dirk Stolle, Prathamesh
Tagore, theroyn, Olzhas Zhumabek
* Graph:
+ Bug fixes:
o Fix bug in stoer_wagner_min_cut where vertices are not merged at
the end of each mincut phase (#286)
o Fix conversion warning for return type of strong_components (#293)
o Fix compilation failure of boykov_kolmogorov_max_flow named
parameter overload (#232)
+ General code improvements:
o Remove redundant call to combine in astar_search_no_init_tree (#260
)
o Remove redundant child_idx argument of d_ary_heap_indirect<>::child
(#261)
o Improve documentation for traversal categories (#303)
+ Acknowledgements
o Viktor Pti, Sebastian Brockmeyer, Etienne dg
* Histogram:
+ Fixed segfault in indexed when trying to iterate over histogram with
axes of zero size (physical or logical) under certain conditions
+ Removed previously deprecated API
o class accumulators::thread_safe: use accumulators::count<T, true>
o Methods accumulators::sum::large and accumulators::sum::small: use
accumulators::sum::large_part and accumulators::sum::small_part
o Type alias algorithm::reduce_option: use algorithm::reduce_command
o Template function axis::traits::static_options: use axis::traits::
get_options
o Template function axis::traits::static_is_inclusive: use axis::
traits::is_inclusive
o Type alias indexed::range_iterator: use indexed::iterator
o Type alias indexed::accessor::reference: use indexed::accessor::
const_reference
* Iterator:
+ For C++11 and later, added support for perfect forwarding of values
written to function_output_iterator. (PR#73)
+ Added protection against writing to function_output_iterator a result
of dereferencing another function_output_iterator.
* JSON:
+ Added non-const value::at overloads.
+ Added the ability to manually choose endianness of the platform.
+ Added string::subview() overload.
+ Fixed segfault in array::erase(it).
+ Fixed low performance of serialize on libc++.
+ Fixed ambigious conversion to std::string_view on GCC 8.
+ Fixed parsing on big-endian platforms.
+ Fixed handling of comment after trailing comma.
* LEAF:
+ API breaking change: throw leaf::exception(....) now becomes
leaf::throw_exception(....)
+ Fixed a bug in support for a rare build configuration (exception
handling enabled, diagnostics disabled)
+ Using nullptr instead of 0 throughout
+ Fixed pedantic warnings
* Locale:
+ Deprecated support for C++03 and earlier, C++11 will be required in the
next release
+ Provide -sICU_LINK_LOCALE as a temporary replacement for -sICU_LINK
which is incompatible with Boost.Regex. -sICU_LINK_LOCALE and -
sICU_LINK are deprecated and will be replaced by ICU_*_NAME options to
be compatible with Boost.Regex
+ Fix UB/assertion failure in the ICU collator implementation when
transforming empty strings
+ Fix some issues related to visibility of classes in shared libraries
(Unix only)
+ Fix compatibility with C++20 mode
+ Fix compatibility with BOOST_USE_WINDOWS_H
+ Fix build failures due to missing includes
+ Handle or suppress many warnings which makes the build log cleaner
* Log:
+ Bug fixes:
o Fixed binding incorrect local address in UDP socket-based
syslog_backend when IPv6 address is used for the syslog server. (#
181)
o Added a workaround for a bug in libstdc++ from gcc 11.2. When
max_size_decor was used on a formatting stream, std::codecvt::
do_length incorrectly accessed the input buffer and caused a buffer
overflow.
+ See changelog for more details.
* Math:
+ Deprecated C++11 support: from 2023 we will require C++14 as a minimum
standard. This will mean GCC-5 or MSVC-14.1 as a minimal requirement.
+ Add constexpr fma support, see 734.
+ Add support for the Chatterjee Correlation Coefficient, see 770.
+ Added support for the logarithm of the PDF for all the distributions.
+ Improve support for building with no exception or RTTI support.
+ Some minor bug fixes for [sub 1]F[sub 1] corner cases, see 778.
* Multiprecision:
+ Mark C++11 support as deprecated: from 2023 we will move to requiring
C++14 as a minimum standard level. That will drop support for GCC
versions prior to 5 and MSVC prior to 14.1.
+ Fix conflict between boost/cstdfloat.hpp and this library.
+ Clean up lots of gcc and clang warnings.
+ Fix input streaming of composite types (complex, interval rational)
where there is a trailing delimeter in the stream and no whitespace.
+ Fix constexpr integer square root where the input is 1, 2 or 3.
+ Add missing #include of <memory> to float128.hpp.
+ Correct 2-arg constructor for class number to prevent ambiguity in some
cases.
+ Correct and make more consistent behaviour of divide-by-zero in
gmp.hpp.
* Multi-index Containers:
+ Maintenance work.
* Nowide:
+ Major performance improvement for Bulk I/O with files
+ basic_filebuf: Fix wrong return value of sync when fflush failed
+ basic_filebuf: Fix possible undefined behavior in a corner case when
nothing was actually written but buffer is in "write" mode
+ basic_filebuf: Limit putback of characters (i.e. pbackfail) only
allowing putback of buffered characters (may be only 1 character)
* Optional:
+ Added specializations for std::hash<boost::optional<T>>. This is a
breaking change for programs that define such specializations
themselves. For more details see specs.
* STLInterfaces:
+ Fix #53: "missing 'typename' prior to dependent type name
'C::const_iterator'"
+ Fix #54: "Concept check fails on .data() of a view on contiguous
iterator_interface instantiations"
+ New additions to make it easy to write views and view adaptors that
work like, and interoperate with, the ones in the standard library:
o Add workalikes for C++23's std::bind_back() and std::
range_adaptor_closure for pre-C++23 code.
o Add templates closure and adaptor to make writing view adaptors
easier, following the examples in P2387.
* System:
+ When an error_code is converted to std::error_code and then back to
error_code, the original is now restored, if possible.
+ Reworked the conversion from error_category to std::error_category to
avoid the one-time allocation that shows up on leak checkers.
+ Added a constructor that allows replacing the source location of an
error_code, and a corresponding assign.
+ Added a converting constructor to result.
* Unordered: Major update:
+ Refactor internal implementation to be dramatically faster
+ Allow final Hasher and KeyEqual objects
+ Update documentation, adding benchmark graphs and notes on the new
internal data structures
* Utility:
+ In string_view/string_ref, fixed max_size returning incorrect value. (#
91)
+ Removed noexcept specifier from string_view::compare as it may throw on
some input arguments. (#94)
+ In string_view/string_ref, added support for calling substr with no
arguments. (#96)
+ Added string_view::contains methods that were introduced in C++23. (#93
)
+ In string_view, added asserts in remove_prefix/remove_suffix methods to
enforce the precondition that the prefix/suffix length does not exceed
the string view size. The previous (undocumented) behavior of silently
clamping the prefix/suffix length is deprecated and will be removed in
a future release. (#92)
* Wave: Fixed bugs:
+ #24: Line numbers wrong after conditional section
+ #160: one test fails with error C2660 and error C2440 under msvc /
permissive- mode
+ #161: BOOST_WAVE_THROW_NAME_CTX does not result in a context callback
and always throws
+ #162: When Boost headers are included in the preprocessed translation
unit, Wave fails in boost/integer.hpp(99)
Updated Tools
* Build:
+ Includes release of B2 version 4.9.2.
Version 1.79.0
Known Issues
These are patches from library authors which were found too late to be fixed in
the release.
* Boost.JSON array::erase can segfault, see #692. Patch.
New Libraries
* No new libraries.
Updated Libraries
* Asio:
+ Added bind_allocator.
+ Added file_base::sync_all_on_write flag.
+ Added missing implementation of basic_file::release().
+ Added per-operation cancellation support to signal sets.
+ Exposed recycling_allocator as part of the public interface.
+ Added the nodiscard attribute to a number of functions.
+ Added OpenSSL 3.0 compatibility.
+ Added support for adopting an existing SSL* into an ssl::stream<>.
+ Enabled executor_work_guard<> in all build configurations.
+ Enabled movable socket iostreams when using clang.
+ Fixed bind_cancellation_slot and bind_executor compatibility with
legacy completion tokens.
+ Fixed associator specialisations for experimental::append and
experimental::prepend.
+ Fixed associated_allocator primary template.
+ Fixed io_uring implementations of async_receive_from for sockets and
write_some_at for 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 for ssl::stream.
+ Fixed any_io_executor implementation to work when both
BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT and
BOOST_ASIO_SEPARATE_COMPILATION are defined.
+ Fixed implementation of basic_socket::at_mark() when using the
sockatmark() 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() and
experimental::basic_concurrent_channel::reset().
+ Fixed potential undefined behaviour in the experimental::promise.
+ Changed the co_spawn implementation to dispatch cancellation signals
through the executor in some circumstances.
+ Fixed various header inclusion issues.
+ Fixed various warnings.
+ A number of documentation enhancements, including:
o Added an overview of Asio's asynchronous model.
o Reworked reference and requirements documentation in terms of
asynchronous model.
o Updated documentation for dispatch(), post(), and defer().
o Documented per-operation cancellation for serial ports.
o Clarified the non-concurrency guarantees made for allocators.
o Reverted the io_context reference documentation to use
executor_work_guard.
o Added more detailed reference documentation to make_strand(),
make_work_guard(), ip::address_v4, ip::address_v6, experimental::
basic_channel, and experimental::basic_concurrent_channel.
o 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() and source_location().function_name() now
return "" instead of "(unknown)".
+ Added a source_location constructor from std::source_location.
+ Changed BOOST_CURRENT_LOCATION to more closely match the behavior of
std::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_ULOCK configuration macro. The macro
affects compilation on Darwin systems and disables ulock-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_posix and file_win32.
+ Fixed file open with append/append_existing flag on Windows
+ Fixed clang-cl UTF8 path handling for file_win32 and file_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_traits SFINAE friendly, addressing LWG3545. (Glen
Fernandes)
+ Added boost::allocator_traits that 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.hpp is deprecated and will be removed in a future
release. The header defines boost::iterator template, which is
equivalent to std::iterator in <iterator> header. However, since std::
iterator is itself deprecated in C++17, users are advised to remove
boost::iterator or std::iterator use from their code.
+ Added boost::core::verbose_terminate_handler, a utility function
intended to be passed to std::set_terminate that prints information
about the uncaught exception to stderr.
* Describe:
+ Enabled unions in BOOST_DESCRIBE_STRUCT and updated examples to check
std::is_union<T>.
+ Added example of defining a fmtlib class formatter.
+ Added example of defining a fmtlib enum formatter.
+ Added example of printing pointers to members.
* Filesystem:
+ v3: path::replace_extension now works in terms of v3 definition of path
::extension rather than v4.
+ Fixed compilation of path appending and concatenation operators with
arguments of types convertible to path or compatible string type. (#223
)
+ On POSIX systems that support fdopendir and O_NOFOLLOW and on Windows,
remove_all is 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 by remove_all with a
directory symlink and cause remove_all to follow the symlink and remove
files in the linked directory instead of removing the symlink itself. (
#224)
+ On Windows, in remove and remove_all implementation, 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, remove and remove_all now support deleting read-only
directories. Support for removing read-only non-directory files was
added previously.
+ On Windows, directory_iterator internal 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_file should no longer fail with an error if the file
to be resized is opened.
+ Disabled use of the statx syscall 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.hpp header is deprecated and
will be removed in a future release. The header is no longer included
by boost/filesystem.hpp by 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.
* Geometry:
+ Major change
o PR#977 Rescaling is turned off by default. This avoids many related
bugs in set operations and buffer.
+ Improvements
o PR#923 Added algorithm closest_points for cartesian point/geometry.
o PR#939 Added algorithm closest_points for other coordinate systems
and geometry combinations excl. boxes.
o PR#961 Added Web Mercator projection.
o PR#966 More efficient cartesian distance strategy used in simplify.
+ Solved issues
o #956 Result of simplify algorithm with incorrect closure.
o #962 Runtime error in R-tree deserialization due to load factor.
o #971 R-tree insertion time impacted by use of long double on ARM
platforms.
+ Bugfixes
o PR#936 Envelope of polygon containing pole.
o PR#948 Spherical and geographic envelope for near meridian
segments.
o PR#974 Spheroidal normalization utilities for NaN coordinates.
o Various fixes in set operations and buffer.
* Integer:
+ Optimized integer_log2 implementation to use bit operations internally.
This allows to employ bit instructions available on most modern CPUs. (
#31)
* IO:
+ Added boost::io::basic_nullbuf, a null stream buffer, and boost::
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_code overloads.
+ Add boost::source_location to error_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:
o 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.
o Breaking change: The file_collector interface has changed:
# scan_for_files method returns a scan_result structure that
contains information collected during the scan;
# is_in_storage method added for testing if a path refers to a
file within the target storage directory.
o Added a new invoke_manip stream manipulator that can be used for
injecting user's function into a stream output expression.
+ Bug fixes:
o Fixed file counter being set to zero if the user calls
text_file_backend::scan_for_files multiple 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 count operations in ranked indices from O(
log(n) + count) to O(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_H and
WIN32_LEAN_AND_MEAN
+ Add sanity check when using boost::nowide::stat with boost::nowide::
stat_t
* Optional:
+ Fixed issue #98.
+ Fixed issue #92.
+ Added support for BOOST_NO_IOSTREAM.
+ Now aligned storage uses unsigned char rather than char to avoid UB.
+ Now using cv-unqualified value_type with placement new to avoid UB.
* 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_pointer to obtain the Allocator pointer from
the result of boost::allocate_unique (Glen Fernandes).
* System:
+ Added a boost::source_location parameter to throw_exception_from_error.
+ Added throw_exception_from_error overloads for errc::errc_t, std::
error_code, std::errc, std::exception_ptr.
+ result<T>::value now automatically supplies BOOST_CURRENT_LOCATION to
throw_exception_from_error via a default argument.
+ Added an errc::make_error_code overload taking a source location.
* ThrowException:
+ Added boost::throw_with_location, a more lightweight alternative of
BOOST_THROW_EXCEPTION for programs that do not use Boost.Exception.
* Unordered:
+ All containers have been updated to support heterogeneous count,
equal_range and find.
+ All containers now implement the member function contains.
+ erase_if has been implemented for all containers.
+ All containers have been updated to support heterogeneous erase and
extract.
+ Changed behavior of reserve to 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<< for monostate.
* Wave:
+ C++11 now required for building Wave itself
+ Fixed bugs:
o #135: Comma operators in array subscripts are deprecated in C++20
o #137: Simple unknown directive => found_unknown_directive is not
called, stripped of pound.
o #138: Empty ifdef block does not emit line directive for missing
whitespace
o #143: Parsing __has_include() fails with trailing tokens
o #145: Sanitizer complains about reset_version()
o #147: bitwise operations between different enumeration types are
deprecated
Updated Tools
* Build:
+ Includes release of B2 version 4.8.2.
*: Revbump packages that use Python at runtime without a PKGNAME prefix
Update to 1.71.0
Changelog:
New Libraries
Variant2: A never-valueless, strong guarantee implementation of std::variant, from Peter Dimov.
Updated Libraries
Align:
Support for any integral type in the integral versions of align_up and align_down.
Revised the implementation of aligned_allocator to no longer require a specialization for void.
Define propagate_on_container_move_assignment and is_always_equal in aligned_allocator.
Asio:
Improved performance slightly by eliminating a redundant move construction when completed handlers are dispatched.
Eliminated a compiler warning by annotating a case fall-through in the free function connect() implementation.
Fixed the is_*_buffer_sequence detection traits for user-defined sequence types.
Fixed some Windows-specific warnings about an incompatible pointer cast when obtaining the CancelIoEx entry point.
Changed to automatically set the defaults when opening a serial port on Windows.
Changed the serial port get_option() member function to be const.
Fixed a name hiding issue with the WinRT stream-oriented socket backend's shutdown function.
Applied a minor fix to the documentation for is_dynamic_buffer.
Added some support for Haiku OS.
Added wolfSSL compatability.
Changed to require C++17 or later for coroutines TS support with clang.
Fixed a doxygen generation problem in the tutorial.
Ensured example programs are correctly incorporated into the documentation.
Any:
Static initialization of the default constructed boost::any is now possible.
Fixed performance regression in assignment on a compilers without move-semantics.
Maintenance work.
Beast:
This version consists mostly of bug fixes and performance improvements.
Substantial work included for the split compilation mode, to reduce compile time when defining BOOST_BEAST_SEPARATE_COMPILATION.
We'd love to know how you or your company use Beast, consider adding an item to the Companies and Individuals Using Beast list.
See the full Release Notes for a complete list of changes.
Circular Buffer:
Correct doxygen generated reference to no longer show internal members. (Glen Fernandes)
Eliminate ubsan warning on add and sub. (Glen Fernandes)
Fix incorrect check in is_uninitialized. (Niklas Fejes)
Container:
Fixed bugs:
GitHub #47: "added alignment specification for small_vector".
GitHub #88: "Implement C++17 MoveAssignable requirements for self-move assignments".
GitHub #107: "Alignment ignored in resource_adaptor".
GitHub #109: "Get rid of integer overflow in copy_move_algo.hpp (-fsanitize=integer)".
GitHub #110: "Avoid gcc 9 deprecated copy warnings in new_allocator.hpp".
GitHub #112: "vector::resize() compilation error with msvc-10..12: data is not a member of boost::detail::aligned_storage".
GitHub #114: "Fix small_vector noexcept specification".
GitHub #116: "MSVC + boost 1.70 compilation error when windows.h is already included (detail/thread_mutex.hpp)".
GitHub #117: "flat_map/map::insert_or_assign with hint has wrong return types".
GitHub #118: "Non-unique inplace_set_difference used in in flat_tree_merge_unique and iterator invalidation in insert_unique".
GitHub #122: "Fix has_trivial_destructor_after_move".
GitHub #123: "With heterogeneous lookup, equal_range can result in a range with length greater than 1".
deque can now have options, using deque_options. The block size/bytes can be be specified.
static_vector can now have options, using static_vector_options. Alignment and throwing behaviour can be be specified.
small_vector can now have options, using small_vector_options. Alignment and growth factor can be be specified.
Context:
Add support for RISC-V LP64D
#72: Fix ABI violation on ppc64 ELFv2
#99: cleanup of stack if creating ucontext fails
Conversion:
Maintenance work.
Core:
Added functions alloc_construct, alloc_construct_n, alloc_destroy, and alloc_destroy_n in <boost/core/alloc_construct.hpp> for allocator aware and exception safe construction and destruction of objects and arrays. (Glen Fernandes)
Added constexpr functions first_scalar in <boost/core/first_scalar.hpp> for obtaining a pointer to the first scalar element of an array. Given a pointer of type T* they return a pointer of type remove_all_extents_t<T>*. (Glen Fernandes)
Added class template noinit_adaptor in <boost/core/noinit_adaptor.hpp> which is an allocator adaptor that converts any allocator into one whose construct(ptr) performs default initialization via placement new, and whose destroy(ptr) invokes the value_type destructor directly. (Glen Fernandes)
Added class template default_allocator in <boost/core/default_allocator.hpp>, which can serve as a minimal default allocator that has interface similar to C++20 std::allocator, supports configurations with disabled exceptions and does not have std as an associated namespace. The allocator uses operator new and operator delete for allocation. (Glen Fernandes)
In <boost/core/uncaught_exceptions.hpp> header, added workarounds for better compatibility with QNX SDP 7.0 when libc++/libc++abi libraries are used. (Andrey Semashev, #59)
The <boost/detail/sp_typeinfo.hpp> header is now marked as deprecated and will be removed in a future release. <boost/core/typeinfo.hpp> should be used instead. (Peter Dimov)
Dynamic Bitset:
Enabled hardware-assisted popcount on MSVC (#38).
Added support for boost::hash and std::hash (#45).
Support copy-initialization with default constructor (#48).
Endian:
Clarified requirements on the value type template parameter
Added support for float and double
Added endian_load, endian_store
Updated endian_reverse to correctly support all non-bool integral types
Moved deprecated names to the deprecated header endian.hpp
Fiber:
documentation for shared_work updated
Filesystem:
Fixed incorrect error_code returned from directory iterator increment when readdir_r is used.
For path, fixed rvalue-aware operator/ return type to return an rvalue instead of rvalue reference. This fixes leaving a dangling reference in the user's code if the result of operator/ is bound to a const reference. (#110)
Fixes for better compatibility with Windows CE. (#24)
Added minimal support for CMake. (#106)
Flyweight:
Maintenance work.
Histogram:
New features:
Support for thread-safe storages and new thread-safe accumulators
Support for compiling without exceptions/RTTI (increases performance by 10-20 %) (with Glen Fernandes)
Performance improvements for 1D and 2D histograms
boost::histogram::indexed now returns forward iterator range instead of input iterator range
boost::histogram::indexed_range::accessor is now non-copyable and acts like reference to cell value, making more algorithms from the C++ stdlib work
boost::histogram::algorithm::reduce with new slice option and option fusion
boost::histogram::algorithm::project accepts runtime indices for static histograms
Bug Fixes:
boost::histogram::algorithm::reduce also works on histograms that have some axis types without reduction support
boost::histogram::axis::traits::update now works correctly for boost::histogram::axis::variant
Other:
100 % test coverage
Reduced internal Boost dependencies
Improved documentation and examples
Guaranteed no-throw moves for all builtin axis types
Compile cleanly at higher warning levels
See changelog for more details.
IoStreams:
Fixed processing of multi-stream files (#87).
Added support for multi-threaded LZMA (#95).
Interprocess:
GitHub #85 ("warning: Implicit conversion loses integer precision").
GitHub #86 ("warning: Possible misuse of comma operator").
Intrusive:
GitHub #42: Documentation does not describe treap priority_of_value changes
GitHub #43: Fix tests with BOOST_INTRUSIVE_VARIADIC_TEMPLATES enabled
GitHub #45: Disable variadic templates for MSVC-12 to avoid ICEs
LexicalCast:
Added tests for boost::filesystem::path conversions #25.
Maintenance work, including #28.
Log:
New features:
Improved support for C++17 std::string_view in basic_formatting_ostream. The string view can now participate in character code conversion on output.
Added auto_newline formatter and stream manipulator. It can be used to ensure that formatted output always ends with a newline while avoiding duplicate newlines.
In the output stream, text file and text multi-file sink backends added support for configuring behavior with regard to appending a trailing newline to every formatted log record. Use auto_newline_mode named parameter of the backend constructor or call the set_auto_newline_mode method on the sink backend.
Note: The default behavior with regard to trailing newlines added by sink backends has changed slightly compared to the previous Boost.Log releases. The backends will now only add a trailing newline if there isn't one in the formatted log message string already. In previous releases a newline was added unconditionally.
Added support for passing arbitrary function objects in the filter and format named parameters to sink constructors and convenience functions for initializing sinks. For example, it is now possible to specify C++11 lambda functions directly in these parameters. (#63)
In the default filter and formatter factories used in filter and formatter parsers, added support for severity level attribute values of type boost::log::trivial::severity_level. For filters, the support is limited to attributes with "Severity" name.
Bug fixes:
Fixed incorrect parsing of components of the rotated file names while scanning for files in the text file sink backend. If the file name pattern ended with a placeholder (for example, a file counter), the scan_for_files method would not find files matching that pattern in the target storage, leaving them unmanaged. In particular, such files would not be deleted to free target storage. (#78)
Updated basic_formatting_ostream and basic_record_ostream to make it possible to overload stream output operators for pointers to user-defined types. User-defined operator<< overloads taking std::basic_ostream and a pointer argument should now be picked up by the compiler when the pointer is being written to one of Boost.Log streams. (#84)
See changelog for more details.
Math:
New features:
Catmull-Rom interpolator now works in C++11
Cardinal quadratic B-spline interpolation
Domain of elliptic integrals extended
sin_pi and cos_pi performance improvements
Forward-mode automatic differentiation
Vector valued barycentric rational interpolation
Ooura's method for evaluation of Fourier integrals
Bug fixes:
Multiple compatibility issues with Multiprecision fixed
Lambert-W fixed on a rare architecture
Metaparse:
New features:
In C++11 variadic template support for the following: sequence, one_of_c, one_of, repeated_one_of, repeated_one_of1, one_char_except_c, one_char_except.
Bug fixes:
BOOST_METAPARSE_STRING does not use out of range character values as template arguments.
any_of_c<> does not create empty array in C++14.
Move:
Git Issue #26: "Invalid iterator increment/decrement in the last iteration of adaptive_sort_combine_blocks".
Multi Array:
Simplify allocator support by using new alloc_construct_n and alloc_destroy_n facilities from Core. (Glen Fernandes)
Multi-index Containers:
Added variants of const_mem_fun and mem_fun for differently qualified member functions (issue #24).
Terse key specification syntax now correctly handles noexcept-specified member functions (issue #24).
Outcome:
Enhancements:
#184 As per request from Boost release managers, relocated version.hpp and revision.hpp into detail, and added the Boost licence boilerplate to the top of every source file which was missing one (I think). Also took the opportunity to run the licence restamping script over all Outcome, so copyright dates are now up to date.
#185 Add FAQ item explaining issue #185, and why we will do nothing to fix it right now.
#189 Refactored the OUTCOME_TRY implementation to use more clarified customisation points capable of accepting very foreign inputs. Removed the std::experimental::expected<T, E> specialisations, as those are no longer necessary. Fixed the documentation for the customisation points which previously claimed that they are ADL discovered, which they are not. Added a recipe describing how to add in support for foreign input types.
#183 Added a separate motivation/plug_error_code specifically for Boost.
Bug fixes:
OUTCOME_VERSION_MINOR hadn't been updated to 1.
#181 Fix issue #181 where Outcome didn't actually implement the strong swap guarantee, despite being documented as doing so.
#190 Fix issue #190 in Boost edition where unit test suite was not runnable from the Boost release distro.
#182 Fix issue #182 where trait::is_exception_ptr_available<T> was always true, thus causing much weirdness, like not printing diagnostics and trying to feed everything to make_exception_ptr().
#192 Fix issue #192 where the std::basic_outcome_failure_exception_from_error() was being defined twice for translation units which combine standalone and Boost Outcome's.
Parameter:
Upgraded keyword generation macro BOOST_PARAMETER_TEMPLATE_KEYWORD (#15).
Moved keyword generation macro BOOST_PARAMETER_NESTED_KEYWORD from Accumulators to this library (#28).
Added support for std::reference_wrapper and std::ref() (#16).
Moved boost::parameter::required, boost::parameter::optional, and boost::parameter::deduced metafunction definitions to their own header files in directory boost/parameter (#18).
Added support for Boost.Parameter-enabled function call operators (#20).
Added support for parameter category qualifiers "forward", "consume", and "move_from" (current qualifiers are "in", "out", and "in_out") (#21) (#23) based on http://www.modernescpp.com/index.php/c-core-guidelines-how-to-pass-function-parameters. Added new usage syntax BOOST_PARAMETER_NAME((object-name), namespace-name) qualifier(tag-name)) and BOOST_PARAMETER_NAME(qualifier(name)). (Existing code that uses qualifiers directly and correctly with BOOST_PARAMETER_FUNCTION and other code generation macros should remain unaffected for now, so no breaking changes.) The reason for the change in usage is to enable applying of parameter category constraints to Boost.Parameter-enabled functions and constructors invoked through argument composition. (Otherwise, it is currently possible to use argument composition to bypass parameter category constraints applied in BOOST_PARAMETER_FUNCTION et. al.)
Added support for perfect forwarding (#23) (#26), so that parameter::parameters::operator() can accept non-const rvalues. As a positive side effect, Boost.Parameter-enabled functions and constructors are no longer bound by BOOST_PARAMETER_MAX_ARITY on compilers that support perfect forwarding. User code can now check for this support by detecting the configuration macro BOOST_PARAMETER_HAS_PERFECT_FORWARDING, or manually turn off this support by defining the configuration macro BOOST_PARAMETER_DISABLE_PERFECT_FORWARDING.
Added metafunctions boost::parameter::is_argument_pack (#27), boost::parameter::are_tagged_arguments (#52), and boost::parameter::result_of::compose (#75).
Added variadic function template boost::parameter::compose() which takes in named arguments and returns them in an argument pack (#52). For compilers that do not support perfect forwarding, the configuration macro BOOST_PARAMETER_COMPOSE_MAX_ARITY determines the maximum number of arguments that boost::parameter::compose() can take in (#61).
Added code generation macros BOOST_PARAMETER_BASIC_FUNCTION_CALL_OPERATOR, BOOST_PARAMETER_BASIC_CONST_FUNCTION_CALL_OPERATOR, BOOST_PARAMETER_NO_SPEC_FUNCTION, BOOST_PARAMETER_NO_SPEC_MEMBER_FUNCTION, BOOST_PARAMETER_NO_SPEC_CONST_MEMBER_FUNCTION, BOOST_PARAMETER_NO_SPEC_FUNCTION_CALL_OPERATOR, BOOST_PARAMETER_NO_SPEC_CONST_FUNCTION_CALL_OPERATOR, BOOST_PARAMETER_NO_SPEC_CONSTRUCTOR, and BOOST_PARAMETER_NO_SPEC_NO_BASE_CONSTRUCTOR (#52).
Added support for Boost.MP11 (#47) (#66) (#70). User code can now check for this support by detecting the configuration macro BOOST_PARAMETER_CAN_USE_MP11, or manually turn off this support by defining the configuration macro BOOST_PARAMETER_DISABLE_MP11_USAGE.
Improved support for parameter-dependent return types via SFINAE (#73).
PtrContainer:
Fix a ptr_vector regression introduced in 1.66.0 (#24).
PolyCollection:
Maintenance work.
SmartPtr:
Added aliasing constructors to weak_ptr
Added weak_ptr<T>::empty()
Added enable_shared_from, shared_from, and weak_from
Stacktrace:
Fixed output of name(), source_location() and source_line() for the default constructed frame with thread sanitizer builds in C++98 mode.
Fixed output of long strings from name() and source_location() on MSVC #78.
Maintenance work.
Test:
Boost.test v3.11 see the Changes log for more details.
Breaking changes:
Boost.Test shows deprecation warnings if some very old headers as deprecated. If you encounter such warnings, please follow the indications: those headers will be removed in a future release.
New feature:
Now BOOST_TEST can be used to compare abstract types
Bug fixes and pull requests:
GitHub Issues: #209, #218
GitHub Pull Requests: #219, #224
Utility:
Implemented function template ostream_string in <boost/utility/ostream_string.hpp> to optimally write any kind of string content to an output stream. It satisfies the requirements of [ostream.formatted.reqmts]. (Glen Fernandes)
Optimized the stream output operators of basic_string_view and basic_string_ref to write directly to the rdbuf stream buffer. (Glen Fernandes)
Uuid:
Breaking change: MD5 name-based uuid generation was corrected to be identical on all endian systems. Define BOOST_UUID_COMPAT_PRE_1_71_MD5 to keep the result in a format compatible with 1.66 through 1.70. This does not affect the default name-based uuid generation which is based on SHA1. (#109)
Variant:
Fixed compilation of boost::apply_visitor with variants passed by non const reference in #68. Many thanks to Ed Catmur for providing the fix.
Added support for std::hash (#49). Macro BOOST_VARIANT_DO_NOT_SPECIALIZE_STD_HASH could be defined to avoid those specializations.
Added micro optimizations for binary size and performance by Nikita Kniazev in #63 and #66.
Maintenance work, including #64 by Nikita Kniazev and #67 by Hans Dembinski.
YAP:
Added an example showing how to make self-evaluating YAP expressions (that is, expressions that don't need an explicit call to evaluate() or transform()).
boost: HOMEPAGE is a permanent redirect to https
PKGREVISION bump for anything using python without a PYPKGPREFIX. This is a semi-manual PKGREVISION bump.
Also depend on boost-mpi
Changes 1.61.0: New Libraries: -------------- Compute: Parallel/GPU-computing library DLL: Library for comfortable work with DLL and DSO. Library provides a portable across platforms way to: * load libraries * import any native functions and variables * make alias names for C++ mangled functions and symbols * query libraries for sections and exported symbols * self loading and self querying * getting program and module location by exported symbol Hana: A modern C++ metaprogramming library. It provides high level algorithms to manipulate heterogeneous sequences, allows writing type-level computations with a natural syntax, provides tools to introspect user-defined types and much more. Metaparse: A library for generating compile time parsers parsing embedded DSL code as part of the C++ compilation process. The library is similar to Spirit, however while parsers built with Spirit parse at run-time, parsers built with Metaparse parse at compile-time.
Bump PKGREVISION from child packages update
Changes 1.60.0: New Libraries VMD: Variadic Macro Data library, from Edward Diener. Updated Libraries Atomic: * Enforced proper alignment of atomic<> storage. This should fix possible issues on platforms that support atomic operations on data units larger than the native word size. This may also change binary layout of user's data structures that have atomic<> members. * Fixed compilation for PowerPC with IBM XL C++ compiler. Corrected memory barriers in PowerPC assembler. * Fixed compilation with MSVC-8 for ARM. * Fixed compilation with gcc 4.4 for x86-64, when 128-bit atomic operations were used. (10994) * Optimized some gcc assembler blocks for x86/x86-64 to reduce the number of used registers. This may require binutils 2.10 or later. Chrono - 2.0.5: Fixes: * 10778 VC14 CTP4 Atomic don't compile with boost::chrono durations which are not TriviallyCopyable * 10840 Missing std:: qualifier for puts call in test_7868.cpp * 10851 Missing std:: qualifier for puts call in time_point_output.cpp * 10893 Minor doc typo in Boost.Chrono * 10992 Chrono IO state savers inconsistent with Boost.IO state savers * 10995 duration_put::put_value truncates fractional part * 11006 Impossible to instantiate time_fmt_io_saver due to several errors. * 11012 chrono_io v2 fail to compile with boost::chrono::duration< boost::rational<int> > Container: * Implemented Polymorphic Memory Resources. * Add more BOOST_ASSERT checks to test preconditions in some operations (like pop_back, pop_front, back, front, etc.) * Added C++11 back/front operations to basic_string. Fixed bugs: * Trac 11627: "small_vector<T,n>::swap() appears to be broken". * Trac 11628: "small_vector<int,n> iterates over elements in destructor". * Trac 11697: "Wrong initialization order in tuple copy-constructor". * Trac 11698: "Missing return statement in static_storage_allocator". * GitHub 29: Doc fixes for flap_map complexity requirements. * GitHub 31: DL_SIZE_IMPL also dereference addr. Context: * 11603 typo in PPC32/MACH-O asm * support for CYGWIN Core: * In symbol demangling tools, added support for gabi++ ABI implementation used in Android NDK. * Added a new enable_if_has_type tool for performing SFINAE checks for presence of a nested type. more...
Recursive revbump from textproc/icu
Rename boost-python to py-boost and make it a proper multi-version package.
Changes 1.58.0: * New Libraries: - Endian: Types and conversion functions for correct byte ordering and more regardless of processor endianness. - Sort: Includes spreadsort, a general-case hybrid radix sort that is faster than O(n*log(n)) * Updated Libraries:
Revbump after updating textproc/icu
Drop maintainership.
Changes 1.44.0: New Libraries * Meta State Machine: High-performance expressive UML2 finite state machines, from Christophe Henry * Polygon: Booleans/clipping, resizing/offsetting and more for planar polygons with integral coordinates, from Lucanus Simonson. Updated Libraries * Accumulators * Asio * Config * Filesystem * Foreach * Hash * Iostreams * Math * MPL * Multi-index Containers * Proto * Regex * Thread * TR1 * Type Traits * uBLAS * Utility * Uuid * Xpressive
Update boost to 1.36.0. Way too many changes since 1.34 to be listed here. Based on patches sent by Brook Milligan through private mail with some minimal changes by me to fix boost-python and builds on Mac OS X. Tested on NetBSD/amd64 current and Tiger.
Make sure that meta packages set META_PACKAGE before including bsd.prefs.mk. Reported by Steven M. Bellovin for xorg packages.
The package supports installation to DESTDIR.
Replaced the custom definitions with META_PACKAGE=yes.
* If PLIST_SRC is explicitly set to an empty value in a package Makefile,
then automatically generate a PLIST that says "${PKGNAME} has no files".
* If PLIST_SRC and GENERATE_PLIST are not set in a package Makefile,
and no PLIST files exist, then fail during the package build with
PKG_FAIL_REASON.
* Remove "intentionally empty" PLISTs again.
Now, the easy way to say that a package installs no files is to just
add the following to the package Makefile:
PLIST_SRC= # empty
Depend on boost-jam. Bump PKGREVISION to 3.
Depend on the short version explicitly rather than allowing a newer (ABI incompatible) fragmented package set. Approved by jmmv. Bump PKGREVISION.
Recursive revision bump / recommended bump for gettext ABI change.
Update Boost to 1.33.0:
New Libraries
* Iostreams Library: Framework for defining streams, stream
buffers and i/o filters, from Jonathan Turkanis.
* Functional/Hash Library: A TR1 hash function object that can be
extended to hash user defined types, from Daniel James.
* Parameter Library: Write functions that accept arguments by
name: especially useful when a function has more than one
argument with a useful default value, since named arguments can
be passed in any order.
* Pointer Container Library: Containers for storing heap-allocated
polymorphic objects to ease OO-programming, from Thorsten Ottosen.
* Wave: Standards conformant implementation of the mandated
C99/C++ preprocessor functionality packed behind an easy to use
iterator interface, from Hartmut Kaiser.
Updated Libraries
* Assignment Library: Support for Pointer Container Library and
new efficient functions ref_list_of() and cref_list_of() for
generating anonymous ranges.
* Bind Library: Bind expressions now support comparisons and
negation. Example: bind(&X::name, _1) < bind(&X::name, _2).
* Date-Time Library:
o Added local time and time zone classes.
o Added format-based Input/Output facets.
o For a complete list of changes, see the library change history.
* Graph Library: Introduced several new algorithms and improved
existing algorithms:
o Experimental Python bindings, from Doug Gregor and Indiana
University.
o floyd_warshall_all_pairs_shortest_paths, from Lauren Foutz
and Scott Hill.
o astar_search, from Kristopher Beevers and Jufeng Peng.
o fruchterman_reingold_force_directed_layout, from Doug
Gregor and Indiana University.
o biconnected_components and articulation_points, from
Jeremy Siek, Janusz Piwowarski, and Doug Gregor.
o sequential_vertex_coloring has been updated, tested, and
documented.
o gursoy_atun_layout, from Jeremiah Willcock and Doug Gregor
of Indiana University.
o king_ordering, from D. Kevin McGrath of Indiana University.
o cuthill_mckee ordering has been recast as an invocation of
breadth_first_search and now supports graphs with multiple
components.
o dijkstra_shortest_paths now uses a relaxed heap as
its priority queue, improving its complexity to O(V log V) and
improving real-world performance for larger graphs.
o read_graphviz now has a new, Spirit-based parser that
works for all graph types and supports arbitrary
properties on the graph, from Ron Garcia. The old,
Bison-based GraphViz reader has been deprecated and will
be removed in a future Boost release. write_graphviz also
supports dynamic properties.
o subgraph: get_property now refers to the subgraph
property, not the root graph's property.
o See the history for additional changes and bug fixes.
* Multi-index Containers Library:
o New hashed indices.
o Added serialization support.
o For a complete list of changes, see the library release notes.
* Program Options Library:
o Option descriptions are now printed with word wrapping.
o Command line parser can bypass unregistered options,
instead of throwing.
o Removed support for "implicit" (optional) values.
o New customization method
'command_line_parser::extra_style_parser'. Unlike
'additional_parser', allows the user to parse several
tokens and return a vector of options, not just a single
option.
o Work with disabled exceptions.
* Property Map Library: Introduced the dynamic properties class,
which provides dynamically-typed access to a set of property maps.
* Random Number Library: improved initialization for
mersenne_twister, algorithm by Makoto Matsumoto and Takuji
Nishimura, implemented for Boost by Jens Maurer.
Note: All test vectors for mersenne_twisters constructed or
seeded without parameters or with a single unsigned int parameter
become invalid.
* Range Library: Minor addition of convenience functions to
iterator range like front(), back() and operator[]().
* Regex Library:
o Rewritten front end parser now supports (?imsx-imsx)
constructs, plus lookbehind assertions and conditional
expressions.
o Thin wrapper classes improve integration with MFC/ATL code.
o Full (optional) Unicode support via the ICU library.
Refer to the regex history page for more information on these
and other small changes.
* Serialization Library:
o DLL version.
o Auto-linking.
o Serialization of variants.
o Improved seialization of shared pointers.
* Signals Library: added slot blocking/unblocking, from Frantz
Maerten. Huge improvements to signal invocation performance from
Robert Zeh.
This update has been tested on NetBSD 2.0.2, 3.0_BETA and current.
Enable sonames under DragonFly, FreeBSD and NetBSD. The default build infrastructure only uses them under Linux and OpenBSD (eww, hardcoded logic based on OS names). Aside making installations more consistent across systems, this lets Boost work correctly on the systems where sonames were previously used. Otherwise, they are unable to find the correct libraries at runtime and we get PLIST errors (more files installed than expected). The problem exposes itself when building software that needs Boost (e.g. monotone). This also means that we can't rename the installed libraries any more as we were doing until now, because programs linked against them will be looking for their respective sonames. Therefore, keep the default names produced by a --layout=system build. Bump PKGREVISION of boost, boost-libs and boost-python to 1.
Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
Complete rework of the Boost packages:
- Drop devel/boost and devel/boost-thread.
- Add devel/boost-docs which includes all the documentation related to Boost
(previously included in devel/boost).
- Add devel/boost-build which includes bjam, the Boost.Build framework.
- Add devel/boost-headers which includes all the header files needed at build
time by programs using Boost (previously included in devel/boost).
- Add devel/boost-libs which includes all the binary libraries needed at build
and run time by programs using Boost (previously included in devel/boost and
devel/thread). All of them are multithreaded, to make things easier.
- devel/boost-python includes the Boost Python library (as it did before), but
now works, given that everything is threaded again.
- Drop our thread_user.hpp customization. Avoids some build failures that
appeared when the previous boost-thread package was not installed.
- Use static PLISTs.
- Install unversioned files. Makes things *a lot* easier when building stuff
outside pkgsrc.
- Add meta-pkgs/boost, a meta package that depends on all of the above.
Thanks go to jlam@ and tv@ for their comments.
While here, update to 1.32.0:
New Toolset Names
The names of some the Boost.Build toolsets have been changed to remove the "."
(dot) character and to fix some other naming inconsistencies. For example,
vc7.1 toolset was renamed to become vc-7_1. Please refer to the Supported
Toolsets section of the installation guide for the complete list of the current
toolset names. This change was made as a part of the effort to make the Boost
distribution compatible with ISO 9660 level 2 requirements.
New Libraries
* Assignment Library: Filling containers with constant or generated data
has never been easier, from Thorsten Ottosen.
* Minmax Library: Standard library extensions for simultaneous min/max and
min/max element computations, from Hervé Brönnimann.
* Multi-index Containers Library: Containers with multiple STL-compatible
access interfaces, from Joaquín M López Muñoz.
* Numeric Conversion Library: Optimized policy-based numeric conversions,
from Fernando Cacciola.
* Program Options Library: Access to configuration data given on command
line, in config files and other sources, from Vladimir Prus.
* Range Library: A new infrastructure for generic algorithms that builds
on top of the new iterator concepts, from Thorsten Ottosen.
* Serialization Library: Serialization/de-serialization of arbitrary C++
data structures to various formats including text, binary, and xml, from
Robert Ramey.
* String Algorithms Library: Collection of string related algorithms for
case conversion, trimming, find/replace operations and more, from Pavol
Droba.
* Tribool: 3-state boolean type library, from Doug Gregor.
Updated Libraries
* Compose: This deprecated library has been removed.
* Graph:
o Added bundled properties to the adjacency_list and adjacency_matrix
class templates, greatly simplifying the introduction of internal
vertex and edge properties.
o The LEDA graph adaptors have been ported to LEDA 4.5.
o Added algorithms for betweenness centrality and betweenness
centrality clustering.
o Added circle layout and undirected spring layout algorithms.
* MPL Library:
o Updated to use the Boost Software License.
o New documentation, including a complete reference manual.
o Major interface changes and improvements, many of which are not
backward compatible. Please refer to the 1.32 changelog for the
detailed information about upgrading to the new version.
* Python Library:
o Updated to use the Boost Software License.
o A new, better method of wrapping classes with virtual functions
has been implemented.
o Support for the new Python Bool type, thanks to Daniel Holth.
o Support for upcoming GCC symbol export control features have been
folded in, thanks to Niall Douglas.
o Improved support for std::auto_ptr-like types.
o Components used by other libraries have been moved out of
python/detail and into boost/detail to improve dependency
relationships.
o Miscellaneous bug fixes and compiler workarounds.
* Signals Library: Introduced deterministic slot ordering, permitting
slots to be connected at the beginning or end of slot groups or the slot
list itself. Combiners may safely have state and are accessible from the
signal.
* Utility: class template result_of added.
* Test Library:
o namespace names gets shorten; old one still supported till next
release
o added proper encoding of XML PCDATA
o support for wide string comparison implemented
For complete list of changes see Test Library release notes.
Regression tests
This release has been extensively tested on a variety of different compilers
and platforms. It is known to contain no regressions against the previous
reference release on the compilers and configurations tested. Please refer to
the corresponding regression reports to see how well your compiler performs on
the new Boost codebase.