Up to [cvs.NetBSD.org] / pkgsrc / devel / boost-libs
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for icu 77 and libxml2 2.14
more boost_stacktrace_backtrace PLIST generation; fixes build on Debian 12
boost-libs: fix linux stacktrace_backtrace PLIST
devel/boost-libs: Handle stacktrace.addr2line in cross-builds. This is a stop-gap measure because I don't know how to spell, e.g., CONFIGURE_ARGS+= ac_cv_addr2line_path=/usr/bin/addr2line in boost-jamlish. No change to native builds, and cross builds were broken without this change, so no revbump.
boost-libs: update PLIST for new files after boost/Makefile.common fix Bump PKGREVISION
devel/boost-libs: Teach print-PLIST to handle boost options. No change to package, only an aid for maintainers.
boost: updated to 1.87.0 1.87.0 https://www.boost.org/users/history/version_1_87_0.html
boost-libs: Add cmake files pkgsrc changes: --------------- * Add CMake files. * Fix some typos thanks to pkglint. * Bump revision.
*: recursive bump for icu 76 shlib major version bump
*: revbump for icu downgrade
*: recursive bump for icu 76.1 shlib bump
devel/boost-libs: Adjust for 1.86.0
revbump after icu and protobuf updates
boost: updated to 1.84.0 https://www.boost.org/users/history/version_1_84_0.html
boost-libs: Pull in xz for lzma support in iostreams. This could have been found by accident previously, so enable explicitly.
*: recursive bump for icu 74.1
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: updated to 1.82.0 1.82.0 New Libraries Mysql: a C++11 client for the MySQL database server, based on Boost.Asio, from Ruben Perez. Updated Libraries Any: Now uses core/enable_if.hpp header instead of the deprecated utility/enable_if.hpp. Asio: Added the ability to customise the execution of a completion handler when an operation completes immediately. Added user-defined literals for buffer types. Added a new protocol type local::seq_packet_protocol to represent AF_UNIX with SOCK_SEQPACKET. Exposed sigaction() flags via an optional argument to signal_set::add. Change allocator_binder, executor_binder, and cancellation_slot_binder to support detection of unspecialised associators. Fixed ambiguity in associated_cancellation_slot<reference_wrapper>::get(). Fixed awaitable<> handling for completion signatures containing std::exception_ptr. Fixed experimental::channel<> try_send failure after a cancel. Fixed thread_pool::join() deadlock when the pool has no internal threads. Fixed pipe release() when using io_uring. Fixed data initialisation and cleanup issues in the io_uring backend. Fixed a dangling reference issue in the execution context overload of get_associated_executor(). Ensured buffered messages can still be received when an experimental::channel<> is closed. Fixed the any_completion_handler assignment operator. Constrained the constructor of any_completion_handler to prevent accidental copying Changed to use uint64_t for OpenSSL options, to match OpenSSL 3. Fixed deferred interoperability with multiple completion signatures. Fixed channels to add partial support for C++11 and C++14. Added missing handler tracking source location support to co_composed and 'awaitable<>' coroutines, when awaiting packaged asynchronous operations. Fixed some 'potential null dereference' and shadow variable warnings. Fixed a asio::buffer overload selection when used with const_buffers_1 and mutable_buffers_1. Disabled the runtime check for current Windows version unless targeting older Windows. Fixed compatibility between buffered stream wrappers and move-constructible streams, such as ssl::stream<>. Fixed basic_socket_acceptor::async_accept compatibility with lambdas that have a deduced return type. Fixed as_tuple compatibility with legacy completion tokens. Fixed redirect_error compatibility with new completion tokens. Fixed a potential, Windows-specific program termination due to exceptions that should have been allowed to escape from a destructor. Prevented inadvertent co_await of boolean expressions. Fixed result handling and support for custom allocators in experimental::use_coro. Fixed variadic template emulation for is_async_operation and completion_signature_of. Fixed incorrect reuse of a moved-from result in experimental::promise. Fixed experimental::coro use with custom allocators. Fixed seek_cur behaviour with stream-oriented files on Windows. Various additions and modifications to the documentation. Consult the Revision History for further details. Atomic: When compiled for x86 targets supporting AVX, vector instructions are now used for 128-bit atomic loads and stores. For 32-bit x86 targets, 64-bit atomic loads and stores with memory_order_seq_cst semantics will now issue a memory ordering instruction. Removed atomic<T>::storage() accessors and atomic<T>::storage_type types that were deprecated in Boost.Atomic 1.73. Users are recommended to use atomic<T>::value() and atomic<T>::value_type instead. Beast: Add error_codes use source_location tcp_stream uses the correct executor of the timer. error_categories use numeric ids file_body supports seek ContainerHash: Added an overload of hash_value for std::nullptr_t. Added is_tuple_like and an overload of hash_value for tuple-like types. Changed string hashing to use mulxp1_hash. This improves both quality and speed. Core: Added boost/core/snprintf.hpp header with portable definitions of snprintf, vsnprintf and their wchar_t counterparts. Deprecated boost/core/is_same.hpp and boost::core::is_same. The header will be removed in a future release. Users are advised to use Boost.TypeTraits or C++ standard library type traits instead. Marked boost::ref member functions and associated methods with noexcept. Marked boost::swap function with noexcept, depending on whether the type supports a non-throwing swap operation. Added boost::core::launder, a portable implementation of std::launder. Added BOOST_CORE_ALIGNOF, a portable implementation of alignof. Added boost::core::max_align_t, a portable equivalent of std::max_align_t, and boost::core::max_align, the alignment of max_align_t. Added boost::core::memory_resource, a portable equivalent of std::pmr::memory_resource from C++17. Added boost/core/serialization.hpp, a collection of primitives allowing libraries to implement Boost.Serialization support for their types without including a Serialization header and thereby making their libraries depend on Serialization. Added boost::data, an implementation of std::data. Added boost::size, an implementation of std::size. Updated boost::span to use boost::data which adds support for range construction from an std::initializer_list. Added boost::identity, an implementation of std::identity. This facility has been moved from Boost.Functional. DLL: Avoid implicit cast from size_t to uint32_t Filesystem: Fixed compilation errors that could have been caused by path conversion constructors being too permissive on the accepted arguments. v4: path::remove_filename now presesrves the trailing directory separator. Added path::remove_filename_and_trailing_separators, which removes the filename and directory separators preceding it from the path. This behavior is similar to path::remove_filename in Filesystem v3, but is also usable in v4. Added path::replace_filename, which replaces filename in a path. Updated implementation of the library version selection to avoid ODR violations. On Windows, added a workaround for querying file attributes for files in SMBv1 shares. Previously, directories in SMBv1 shares could have been reported as regular files. This does not affect SMBv2 or later. Geometry: Major improvements Support geographic buffer for (multi)linestrings and (multi)polygons Improvements Comparable distance: Add support for dynamic geometries Support covered_by() for box, geometry combinations Solved issues WKT: allow tabs and new lines Fixes for union Various fixes in examples Breaking changes The WKT output presentation of an empty polygon is now POLYGON() to make it consistent with other geometries Histogram: Replace detail::span and detail::make_span with implementations in boost::core Documentation improvements Protect usage of std::min and std::max in some cases, contributed by Han Jiang (min,max macros are illegially set by popular Windows headers so we need to work around) Added test to catch usage of unprotected min,max tokens in the library in the future Fixes to support latest clang-14 and deduction guides in gcc-11+ JSON: set_at_pointer. boost::hash support. Caller-provided serializer storage. value_to supports missing elements for std::optional. Fix parser suspend inside an escape character. Make sentinel() return a unique pointer. Locale: get_system_locale and dependents will now correctly favor LC_ALL over LC_CTYPE as defined by POSIX utf8_codecvt::out returns partial for trailing (UTF) surrogates Add boost::locale::util::locale_data to parse a locale boost::locale::info::encoding() result is now in uppercase as documented, e.g. "UTF-8" instead of "utf-8" Support M49 country codes such as en_001 or en_150 Treat en_US_POSIX as an alias for the C locale Improve error for missing segmentation support (i.e. without ICU) Fix compiler warnings Math: Deprecated C++11 support: We now require C++14 as a minimum standard. Our minimum tested compiler versions are now Clang-5, GCC-5 or MSVC-14.1. Added Estrin's method for polynomial evaluation. Fix various issues in non-central distributions to allow for larger non-centralities see 939. Added CMake install target. Fix special_functions.hpp to disable anything which can't be used in an exception-free environment. Get condition number calculation working in C++14. Fix constexpr table driven functions to avoid massive slowdown when the code is not actually constexpr, see 923. Improve tanh_sinh boundary handling, see 894. Add Linux arm64, s390x and Apple M1 testing, fix up test cases to handle 128-bit long doubles. Improve constexpr math functions to better handle infinities and NaN's. Make the integrators const-correct. Fix tanh_sinh integrator in case the function underflows, see 898. Don't use std::cbrt as some platforms still don't support it. Stop non-central T from raising spurious FE_INVALID exceptions, see 892. Fix binomial distribution edge case. Improve ibeta handling of very small arguments, see 884. Improve ibeta handling of infinities and NaN's, see 878. Improve error handling in powm1, see 781. Improve root-finder bracketing to bracket faster when the exponent is super-large or small. Fix root finding edge cases, see 873. Lots of miscellaneous warning fixes. Add assertions when using features which require C++17 for better error messages when invoking the compiler in a lower std version. Multi-index Containers: Serialization now uses unsigned long instead of collection_size_type, and multi_index_container serialization class version has been bumped from 2 to 3 to reflect this change. Reading old archives may fail for custom archive types giving special treatment to collection_size_type values: if this is the case, globally define the macro BOOST_MULTI_INDEX_ENABLE_SERIALIZATION_COMPATIBILITY_V2 to ensure backwards compatibility in reading operations. Maintenance work. Multiprecision: Deprecated C++11 support: We now require C++14 as a minimum standard. Our minimum tested compiler versions are now Clang-5, GCC-5 or MSVC-14.1. Added a new forward declaration header. Update Eigen interoperability so we no longer rely on Eigen's details, see 479. Add Cmake install target. Fix cpp_dec_float construction from string in standalone case for better error handling, see 499. Remove redundent definitions when in C++17 mode, see 530. Fix the error handling in standalone itrunc and ltrunc. Fix potentially uninitialized storage when parsing octal strings. Add arm64 and s390x CI testing. Add some missing expression template unpacking code for powm, see 506. Nowide: Add convert_string overload accepting a (std::)string instance Add quoted to output (quoted UTF-8) paths (std::filesystem or boost::filesystem) to streams PFR: Implemented the boost::pfr::is_implicitly_reflectable and the machinery for specializing aggregates as reflectable or not Implemented boost::pfr::get by type of an element in the aggregate. Implemented the BOOST_PFR_ENABLED macro to detect library support for reflection Fixed missing terminating character Fixed the boost/pfr/config.hpp compilation on older compilers Workaround for broken C++17 stuctured binding in old compilers Avoid -Wzero-as-null-pointer-constant warnings Fixed multiple typos, thanks to Denis Mikhailov for the fixes. Added missing #pragma once Multiple fixes and improvements for the docs. Process: Added management for extern processes to V2 (still experimental) Deprecated wait_for & wait_until in V1 - they will be removed in the future! Stacktrace: Fixed typos in docs and comments, thanks to Chocobo1 for the PR Fixed multithreading flag detection for backtrace_create_state if BOOST_STACKTRACE_BACKTRACE_FORCE_STATIC is defined. StaticString: Boost.Core string_view and std::string_view interoperability Test: Fixed several unused variable warnings Fixed sprintf deprecation warnings Fixed undefined behavior in basic_cstring::rfind Added CI through Github Actions Unordered: Major update. Added node-based, open-addressing containers boost::unordered_node_map and boost::unordered_node_set. Extended heterogeneous lookup to more member functions as specified in P2363. Replaced the previous post-mixing process for open-addressing containers with a new algorithm based on extended multiplication by a constant. Fixed bug in internal emplace impl where stack-local types were not properly constructed using the allocator of the container which breaks uses-allocator construction. URL: Add url::format with automatic percent-encoding URL router example set_params convenience function Support implicit conversions to string_view Parsing constructors are implicit string_token::arg has virtual destructor and slice protection Support BOOST_URL_DISABLE_THREADS Improvements and Bug fixes: WIN32_LEAN_AND_MEAN macro redefinition warning Comparison differentiates absent and empty components Detect hier_part_rule with empty-port-like segments Segments comparison as if normalized works above root hier-part path-rootless considers invalid segments port as number is set to 0 when it overflows ipv4 to string overflow detection algorithm Variant: Now uses core/addressof instead of the deprecated utility/addressof.
revbump after textproc/icu update
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.
massive revision bump after textproc/icu update
revbump for textproc/icu update
boost-libs: fix detection of pkgsrc zlib and bzip2 Also does not (afaict) depend on expat any more. Bump PKGREVISION.
boost: Update to 1.78.0 Changelog: Version 1.78.0 Known Issues These are patches from library authors which were found too late to be fixed in the release. * Boost.Build silently skips installation of library headers and binaries in some cases, see #104. + Fixed in PR#113, patch. * Boost.Atomic fails to build when targeting UWP, see #54. Patch. New Libraries * No new libraries. Updated Libraries * Asio: + Added an io_uring backend that may optionally be used for all I/O objects, including sockets, timers, and posix descriptors. + Added support for files, with new new classes for stream-oriented and random-access files. This feature currently supports I/O completion ports on Windows, and io_uring on Linux. + Added support for portable pipes on POSIX and Windows (when I/O completion ports are available). + Added support for registered buffers, which are optimised when using the io_uring backend. + Added experimental support for channels, that may be used to send and queue completions as messages. + Implemented improvements to experimental::coro. + Disabled aligned_alloc on clang when using an MSVC runtime. + Changed to use a faster implementation for ip::network_v4::canonical(). + Added template specialisations for common uses to improve compile time. + Reduced the size of io_context executors to a single pointer. + Increased the small object buffer size for execution::any_executor and any_io_executor. + Fixed multi-signature handling when variadic templates are disabled. + Fixed compatibility with new versions of gcc and clang. + Fixed compilation on Solaris. + Fixed defence against Qt-defined macros when building with MSVC. + Improved error messages emitted by ssl facilities. + Fixed bind_executor compatibility with completion tokens. + Fixed build errors when BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT is defined. + Added missing move assignment operator to awaitable<>. + Fixed an access violation when using coroutines with MSVC, due to incorrect alignment of allocated memory. + Fixed a cleanup issue in experimental::parallel_group that occured when the execution context was shut down with parallel operations still pending. + Added clarifications to the documentation on concurrency hints. + Added documentation on error handling techniques for C++20 coroutines. + Fixed various warnings. + Consult the Revision History for further details. * Assert: + Added source_location::to_string. * Atomic: + Use process-local futex operations on Android for non-IPC waiting and notifying operations. + Added support for Linux targets that only define SYS_futex_time64 syscall, such as riscv32. + Added a workaround for incorrect result of std::alignment_of on clang 8 for 64-bit types on 32-bit x86 targets. + Added a ulock backend for waiting and notifying operations on Darwin systems since Mac OS 10.12, iOS 10.0, tvOS 10.0 or watchOS 3.0. + On Windows, corrected discrepancy between atomic-type ::always_has_native_wait_notify and the corresponding capability macros when targeting Windows 8 or later. The library will now directly use WaitOnAddress and related APIs from public headers and therefore require user to link with synchronization.lib if the user requires Windows 8 or later by defining BOOST_USE_WINAPI_VERSION, _WIN32_WINNT or similar macros. The library is linked automatically on compilers that support auto-linking (e.g. MSVC). + Added support for types with padding bits, except unions, on compilers that provide a way to clear the padding bits. This feature is supported by gcc 11 and MSVC 14.2 (compiler version 19.27) and newer, as well as other compilers supporting similar intrinsics. On compilers that don't allow to clear the padding bits, types with padding are still generally not supported with the exception of 80-bit long double on x86 targets. A new BOOST_ATOMIC_NO_CLEAR_PADDING capability macro is defined to indicate when clearing the padding is not supported. + Initializing constructors of atomic_ref and ipc_atomic_ref no longer use atomic instructions to clear the padding bits in the referenced object. This reduces the cost of the atomic reference construction. + Initializing constructors of atomic and ipc_atomic are now constexpr for enums, classes and floating point types. For classes and floating point types, the constructors are constexpr if the compiler supports constexpr std::bit_cast, the type has no padding bytes and no padding is required to implement native atomic operations. + In accordance with C++20, default constructors of atomic and ipc_atomic now perform value initialization of the contained object. For types without a user-defined default constructor, this means the default-constructed atomic will be zero-initialized. + Added a workaround for compilation error on AIX caused by the assembler tool not supporting numeric labels. (PR#50) + Added a workaround for compilation error with Visual Studio 2015 prior to Update 3. (#52) + See changelog for more details. * Beast: + This maintenance update brings minor bug fixes and updated CI reporting. + Fixed security vulnerability CVE-2016-9840 in zlib implementation. + Fixed WebSocket permessage_deflate implementation. This should result in an increase in compression performance when using Beast WebSockets. + Removed the test stream and test framework's dependency on RTTI. You can now use our handy test stream to check your embedded asynchronous communications code! + 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: + Added a generic implementation to <boost/core/cmath.hpp>, enabled when BOOST_CORE_USE_GENERIC_CMATH is defined or when the platform does not provide the necessary facilities in <cmath>. + Added boost::core::type_name, a utility function that returns the name of a type as a string. + Added boost::span, a C++11 implementation of C++20's std::span (Glen Fernandes). * Describe: + Added has_describe_enumerators, has_describe_bases, has_describe_members. + Added enum_to_string, enum_from_string. + Added relational and stream insertion operators. + Added descriptor_by_name, descriptor_by_pointer. * DLL: + Fixed missing #include, thanks to Denis Blank (PR#54) + Dropped TravisCI in favor of GithubAction CI * Filesystem: + v4: path::filename and path::iterator no longer return an implicit trailing dot (".") element if the path ends with a directory separator. Instead, an empty path is returned, similar to C++17 std::filesystem. This also affects other methods that are defined in terms of iterators or filename, such as path::stem, path::compare or lexicographical_compare. For example, path("a/b/") == path("a/b/.") no longer holds true. (#193) + v4: path::lexically_normal no longer produce a trailing dot (".") element and omits a directory separator after a trailing dot-dot ("..") element in the normalized paths. + v4: path append operations now consider root name and root directory in the appended path. If the appended path is absolute, or root name is present and differs from the source path, the resulting path is equivalent to the appended path. If root directory is present, the result is the root directory and relative path rebased on top of the root name of the source path. Otherwise, the behavior is similar to v3. (#214) + path::lexically_normal now converts directory separators to preferred separators in the root name of the normalized paths. + Optimized overloads of path::assign, path::append, path::concat and the corresponding operators to avoid unnecessary path copying and reduce the amount of code redundancy. + On POSIX systems, fixed absolute(p, base) returning a path with root name base.root_name() if p starts with a root directory. In such a case p is already an absolute path and should be returned as is. + create_directories no longer reports an error if the input path consists entirely of dot (".") and dot-dot ("..") elements. The implementation is no longer using recursion internally and therefore is better protected from stack overflow on extremely long paths. + On Windows, remove now supports deleting read-only files. The operation will attempt to reset the read-only attribute prior to removal. Note that this introduces a possibility of the read-only attribute being left unset, if the operation fails and the original value of the attribute fails to be restored. This also affects remove_all. (#216) + remove_all now returns static_cast< uintmax_t >(-1) in case of error, similar to C++17 std::filesystem. + Fixed a linking error about unresolved references to Boost.ContainerHash functions when user's code includes boost/ filesystem/path.hpp but not boost/container_hash/hash.hpp and the compiler is set to preserve unused inline functions. (#215) + Added a workaround for MSVC and compatible compilers eliminating path globals cleanup in release builds. This could lead to a memory leak if Boost.Filesystem shared library was repeatedly loaded and unloaded in the process. (#217) * Geometry: + Improvements o PR#894 Optimization and refactoring of rtree queries. o PR#913 DynamicGeometry and GeometryCollection support in various algorithms (undocumented for now). o PR#922 DynamicGeometry and GeometryCollection support in distance (undocumented for now). + Solved issues o #867 Poor performance of rtree query iterator with nearest predicate for big k. o #870 Compilation error in boost::geometry::self_turns. o #896 Assertion failure in get_turns with BOOST_GEOMETRY_NO_ROBUSTNESS. + Bugfixes o PR#906 Invalid result of buffer on macos-11 with clang-12. o PR#921 Compilation errors with c++20 (various compilers) and gcc-5. o Various fixes in set operations and buffer. * JSON: + Standalone mode of the library is deprecated. + Allow external libraries to forward declare value_to and value_from. + Fixed signed integer overflow in number parsing. + Add support for /Zc:implicitNoexcept- on MSVC. * Lambda2: + Added special cases in operator<< and operator>> when the first argument is a stream, to allow std::cout << _1. + Added operator->*. + Added first, second. * Log: + General changes: o Updated detection of std::codecvt specializations for char16_t and char32_t for compatibility with C++17 and later. (PR#159) o Added support for C++17 std::byte type to receive methods of the inter-process message queue. o On Windows, when building the library for Windows 8 or later, the library will use nt62 tag in the version namespace to denote the target OS ABI. For example, the version namespace could be named as v2_mt_nt62. This name will be part of all symbols exported by the library. Use the BOOST_USE_WINAPI_VERSION macro consistenly when building Boost and your code to request the minimum target Windows version. o Improved performance of SSSE3 and AVX2 implementations of the dump stream manipulator. o Added support for CMake build system. Only library build is supported at this moment, Boost.Build is still used for running tests. + Bug fixes: o Fixed a race condition on POSIX systems in reliable_message_queue:: open_or_create or the equivalent constructor. Multiple threads or processes calling open_or_create concurrently with sending or receiving messages from the same queue could end up corrupting the queue contents and potentially crashing the process. (#162) o Added a workaround for b2 install failing on Windows because of missing boost_log_setup library if BOOST_LOG_WITHOUT_SETTINGS_PARSERS is defined. (#164) + See changelog for more details. * Math: + Add support for cubic roots. + Add support for constexpr versions of various standard library math routines. + Add support for Bezier polynomials. + Improve worst-case tanh-sinh integration performance. + Disable inadvertant use of integral types in integration routines. + Minor update for erf approximations when the result is with 2ulp of 1. + Allow Bernoulli code to be used on platforms with no atomic integers. + Improve the mode of the non-central Chi Squared distribution. + Improve certain edge cases for <cstdfloat> complex-valued elementary functions, see #507. * Multi-index Containers: + Added contains to key-based indices (issue #35). + Added merge operations to key-based indices. The functionality goes beyond the standard specification for (unordered) associative containers in a number of ways, most notably: o The source index can be of any type, including non key-based indices. o Partial merge is provided: for instance, x.merge(y,first,last) merges only the elements of y within [first,last). + Previous versions of splice for sequenced and random access indices were destructive, i.e. elements were copy-inserted into the destination and then erased from the source. Now, splice is based on node transfer much as merge in key-based indices, and has been similarly extended to accept source indices of any type: in fact, splice can be regarded as a frontend to the same functionality provided by merge in key-based indices. For reasons of backwards compatibility, the destructive behavior of splice has been retained in the case that the source and destination containers have unequal allocators. + The fact has been documented that index iterator types do only depend on node_type and the position of the index in its multi_index_container , (except for hashed indices, where uniqueness/non-uniqueness is also a dependency). This has implications on the validity of iterators to elements transferred by merge or splice. This property is a variant of what has been called SCARY iterators in the C++ standard mailing lists. SCARYness is currently (August 2021) not mandated for standard containers. + Iterator SCARYness is now also preserved in safe mode. * Multiprecision: + Rework rational_adaptor to remove dependency on Boost.Rational and improve performance. + Fix issue with type_traits and clang, see #383. + Fixed buggy Lehmer's GCD routine, see #370. + Fix mpc_complex constructors so that lossy conversions are explicit, see #363. + Correct miscellaneous configuration issues (Intel intrinsic usage and Apple clang). + Correct some iostream operators for unsigned char types. + Correct mpq_rational conversions to integer types, see #342. * PFR: + Added missing #include <memory> for inclusion of std::addressof + Fixed -Wzero-length-array warning when dealing with empty aggregates + Fixed compilation on msvc compilers <= 1920 (thanks to Alexey Romanov aka @alexey-romanov) + Added basic CMakeLists.txt support (thanks to @pdimov aka Peter Dimov) + Multiple improvements for docs, including links to https://github.com/ apolukhin/pfr_non_boost + Added misc/strip_boost_namespace.sh script to remove boost:: and BOOST_ prefixes * Predef: + Version 1.13.1 + Fix spelling of "epoch". + Add missing parenthesis in sparc.h (from tkoecker). + Update documentation to use Rouge code styling and Amber general style. * Regex: + Breaking Change: Change \B to be the opposite of \b as per Perl behaviour. + Change w32_regex_traits.hpp so that windows.h is no longer included. + Fxed fuzzing related issues #151, #152, #153, #156. * System: + Added support for source locations to error_code. + Added error_code::to_string, error_condition::to_string, error_code:: what. + system_error::what() now contains the source location, if present. + Added result<T, E = error_code>, a class holding either a value or an error, defined in <boost/system/result.hpp>. * Utility: + Library documentation converted to QuickBook (thanks to Alan de Freitas, PR#79). * Variant2: + Added <boost/variant2.hpp>. + Added unsafe_get<I>. + Added visit_by_index. + Added operator<<. Updated Tools * Build: + Includes release of B2 version 4.7.2.
revbump for icu and libffi
boost-libs: disable pch everywhere Operating under the assumption that more and more platforms will be RELRO enabled and this will keep breaking because the conditional is not kept up-to-date. (it broke on aarch64 after RELRO enablement)
boost-libs: disable pch for all GCC versions on NetBSD-amd64
boost: updated to 1.77.0 1.77.0 New Libraries Describe: A C++14 reflection library, from Peter Dimov. Provides macros for describing enumerators and struct/class members, and primitives for querying this information. Lambda2: A C++14, dependency-free, single header lambda library, from Peter Dimov. Allows simple function objects to be constructed via expressions such as _1 + 5, _1 % 2 == 0, _1 > _2, or _1 == ' ' || _1 == '\t'. Updated Libraries Any: Added boost::anys::basic_any - a data type with customizable Small Object Optimization whose instances can hold instances of any type that satisfies ValueType requirements (many thanks to Ruslan Arutyunyan @rarutyun). If you are not sure that you really need it, then use boost::any instead. Started using GithubActions CI for additional testing Asio: Added support for cancellation of individual asynchronous operations. Added the associator trait, used to generically forward associators. Changed all asynchronous operations implemented in Asio to invoke their completion handlers as rvalue references. Added support for asynchronous operations with multiple completion signatures. Added operator&& and operator|| for awaitable<>, to allow coroutines to be trivially awaited in parallel. Added the experimental::as_tuple completion token adapter. Added the experimental::append completion token adapter. Added the experimental::prepend completion token adapter. Added the experimental::deferred completion token, whicih allows deferred execution of asynchronous operations. Added the experimental::parallel_group class and experimental::make_parallel_group function. Added experimental::promise, which allows eager execution and synchronisation of asynchronous operations. Added the experimental::coro class template, a C++20 coroutine primitive with the ability to combine both asynchronous waiting (co_await) and yielding (co_yield). Added move assignment to ssl::stream<>. Changed co_spawn to dispatch the coroutine's initial step to the executor. Enabled additional optimisations for any_executor and any_io_executor when used with asynchronous operations. Added the nodiscard attribute to awaitable<>. Increased the number of cached slots in the default recycling allocator. Changed the default allocator behaviour to respect alignment requirements, to support over-aligned types. Ensured the result strings are always initialised in reverse name resolution. Fixed recursive template instantiation issues in use_awaitable_t::executor_with_default. Fixed the any_io_executor equality operators to correctly return a result based on the target executor. Fixed strand<> to avoid using a potentially moved-from executor. Ensured gcc tests are not used for clang when detecting compiler features. Disabled coroutines support for the clang shipped with MSVC. Fixed compatibility with recent LibreSSL when OPENSSL_NO_SSL_INTERN is defined. Fixed posix::basic_stream_descriptor move operations to work with non-defaulted executors. Consult the Revision History for further details. Atomic: Added make_atomic_ref and make_ipc_atomic_ref factory functions for constructing atomic reference objects. Added C++17 template argument deduction guides for atomic_ref and ipc_atomic_ref to allow omitting template arguments when they can be deduced from constructor arguments. Beast: This maintenance update brings minor bug fixes and updated CI reporting. We'd love to know how you or your company use Beast, consider adding an entry to the Companies and Individuals Using Beast list. See the full Release Notes for a complete list of changes. Conversion: boost::implicit_cast is now constexpr. Fixed broken links. Started using GithubActions CI for additional testing Core: boost/core/uncaught_exceptions.hpp has been modified for compatibility with Mac OS 10.4 and older. DLL: More runtime checks for malformed ELFs in boost::dll::library_info In boost::dll::library_info use info from .dynsym ELF section if .symtab is empty or missing List protected ELF symbols in boost::dll::library_info as they are available for import Remove unneeded convert from wchar_t to char on POSIX environment, thanks to Vladislav Shchapov Started using GithubAction CI for additional testing Filesystem: Introducing Boost.Filesystem v4. This new version of the library removes all deprecated features of v3 and also makes a number of breaking API changes intended to make Boost.Filesystem more compatible with std::filesystem introduced in C++17. The differences are described in the release notes and documentation using v3 and v4 tags and are also summarised in a separate section. Users can select Boost.Filesystem version by defining BOOST_FILESYSTEM_VERSION macro to either 3 or 4 when compiling their code. There is no need to separately compile Boost.Filesystem for each library version - a single binary supports both v3 and v4. Users should avoid using both v3 and v4 in the same application as this can lead to subtle bugs. Currently, v3 is the default. In a future release v4 will become the default, and eventually v3 will be removed. v4 is functional, but it is still a work in progress and there may be breaking API changes in the future. v4: path::filename, path::stem and path::extension no longer consider root name or root directory of the path as a filename if the path only consists of those components. For example, on Windows path("C:").filename() used to return "C:" and path("C:\\").filename() used to return "\" and both will return an empty path now. v4: path::stem and path::extension no longer treat a filename that starts with a dot and has no other dots as an extension. Filenames starting with a dot are commonly treated as filenames with an empty extension. The leading dot is used to indicate a hidden file on most UNIX-like systems. New: Improved support for various path prefixes on Windows. Added support for local device prefix ("\\.\") and experimental support for NT path prefix ("\??\"). The prefixes will be included in the root name of a path. Note that using the prefixes with Boost.Filesystem v3 can lead to surprising results (e.g. path("\\\\.\\").stem() == "\\\\"). It is recommended to use the prefixes only with Boost.Filesystem v4. Reworked path::lexically_normal implementation to eliminate some cases of duplicate dot (".") elements in the normalized paths. New: Added runtime detection of the statx and getrandom system calls on Linux. This can be useful if the syscall is present at compile time but fails with ENOSYS at run time (for example, in Docker containers that restrict the syscall, even if available on the host). New: Added support for disabling usage of various system APIs at library build time. This can be useful when a certain API is detected as present by the library configuration scripts but must not be used for some reason (for example, when runtime detection does not work on the target system). See the description of configuration macros in the library documentationfor for more details. New: Added copy_options::synchronize_data and copy_options::synchronize options for the copy_file operation. These options allow to synchronize the written data and attributes with the permanent storage. These options are expensive in terms of performance, but allow to ensure reliability of the copied data. Note that copy_file performed implicit data synchronization on POSIX systems since Boost.Filesystem 1.74.0. This release adds support for more platforms and disables data synchronization by default while allowing the caller to explicitly request it. Added handling of EINTR error code on POSIX systems for some system calls issued internally. In particular, EINTR could have been ignored on close, which on HP-UX would result in a leaked file descriptor. In the copy_file implementations based on Linux sendfile and copy_file_range system calls, added handling of error codes indicating that a particular filesystem does not support the system call and fall back to the generic read/write loop. This should fix copy_file failing on eCryptFS and possibly other filesystems. The copy_file_range system call is now used since Linux kernel 4.5, whereas previously it was only enabled since 5.3. The copy_file implementation will fall back to sendfile or read/write loop if copy_file_range fails to copy a given file across filesystems. The copy_file implementations based on Linux sendfile and copy_file_range system calls will not be used on filesystems that are known to contain files with generated content. These system calls are incompatible with such files, and copying them would result in zero-sized files. The generic read/write loop will be used instead. Currently, the blacklisted filesystems are: procfs, sysfs, tracefs and debugfs. In the copy_file implementation based on read/write loop, increased the maximum size of the buffer used for temporary storage and take into account the target filesystem block size for more optimal performance. On Windows CE, calling current_path to obtain the current path for a process will now fail with an error instead of returning successfully with a root path. This platform does not support current directory. Changing the current path was already failing similarly in previous releases of Boost.Filesystem. In canonical, fixed the check for a symlink referencing a directory above root, if an earlier symlink was resolved to an absolute path with a different root from the original path. In canonical, added a limit for the maximum number of symlinks that can be resolved during the call. The limit is currently at least 40 symlinks. On Windows, canonical and weakly_canonical will now use path::preferred_separator for the root directory separator in the resulting paths. This fixes "file not found" errors caused by Windows API not handling generic separators in UNC paths and paths that start with the Win32 filesystem prefix ("\\?\"). New: Added weakly_canonical overloads taking base path as an argument. On Windows, weakly_canonical no longer fails with an error if the input path contains elements that do not exist in the filesystem but are cancelled by a subsequent dot-dot ("..") element. For example, weakly_canonical("C:\\a\\..") would previously fail if "C:\a" directory did not exist. In read_symlink on Windows, corrected reparse point handling. The operation would return an empty path for some mount points (for example, created by Box cloud storage driver) and directory junction points that had empty print names. The new implementation now parses substitute name of the reparse point and attempts to reconstruct a Win32 path from it. On Windows, file streams provided in boost/filesystem/fstream.hpp will use wide character paths on libc++ versions 7.0 and higher, when the standard library supports opening files with wide character paths. On Windows, creating symlinks should no longer require elevated privileges, if Windows is configured in Developer mode. With some compilers, global objects used internally in Boost.Filesystem are now destroyed after user's global destructors are called. This allows to call Boost.Filesystem methods during the program termination stage. In particular, this concerns the path locale that is used for character code conversion and can be installed by calling path::imbue. The supported compilers include MSVC, GCC and Clang, as well as other compilers that support customizing program initialization order through #pragma section (for MSVC-compatible compilers) or __attribute__ ((init_priority)) (for GCC-compatible compilers). JSON: value_to supports TupleLike types. value_to and value_from support std::array and similar types. Implicit conversion operator from string to std::string_view. std::hash specializations for json types. Fixed allocation errors in object and key_value_pair. Fixed crash when constructing array from a pair of iterators that form an empty range. LexicalCast: Fixed assignment to an int of a floating point value that is out of representable range for int. Started using GithubActions CI for additional testing Log: Fixed compilation for riscv32 target. Mp11: Added mp_intersperse, mp_split, mp_join Multi-index Containers: Maintenance work. PFR: A MurMur Hash based implementation of hash_combine() is now used to reduce collisions count and improve quality of boost::pfr::hash_value() Visual Studio 2017 now supported in C++14 mode (thanks to Denis Mikhailov aka @denzor200) Issues found by inspect tool were fixed Fixed some warnings, including removal of extra semicolons in include/boost/pfr/detail/fields_count.hpp Added a compile time assert for inherited types (thanks to Denis Mikhailov aka @denzor200) Reflection of aggregates with non movable fields is now possible if guaranteed copy elision is on Fixed spelling issues Started using GithubActions CI for additional testing PropertyTree: This is a maintenance release. Extend compiler coverage in CI. Fix Boost compatibility for CMakeLists.txt. System: The conversion operator from error_category to std::error_category has been improved and no longer requires <map> or <mutex>. The comparison operators of error_category are now inline friends instead of member functions (a side effect of the previous change.) error_condition now defers calling generic_category() to avoid instantiating the object until it's actually needed. error_condition::failed and error_condition::message have been undeprecated, and operator bool() now once again returns failed(). The system category now doesn't call generic_category(), to avoid instantiating the object. The return value of default_error_condition changes in some cases into an error_condition from the generic category, instead of from the system category. This happens on POSIX when the input error_code is from the system category and does not correspond to any errc_t value. The interoperability of error_code and std::error_code has been improved substantially. It is now possible to construct boost::system::error_code from std::error_code, and it's possible to pass boost::system::error_code to functions taking std::error_code&. A stream insertion operator for error_condition has been added. Uuid: Added to_chars for writing uuid strings without allocating
devel/boost-libs: fix libbacktrace logic This avoids calling the compiler and the barrier in the Makefile which broke build for some folks. If libbacktrace-related files appear, they are automatically included in PLIST. This depends on a detail of the external toolchain (e.g. on Ubuntu) which may or may not include libbacktrace.
devel/boost-libs: make the libbacktrace check nicer
devel/boost-libs: smarter check for libbacktrace indepentent of distro This just does a quick compile/link to actually see if libbacktrace is present in the current toolchain, not resorting to assumptions based on Linux distro. In theory, it should work on any system, but I kept the Linux condition in place.
boost: updated to 1.76.0 Updated Libraries Asio: Added ip::scope_id_type type alias. Added ip::port_type type alias. Added std::hash specialisations for IP addresses. Added std::hash specialisations for ip::basic_endpoint<>. Refactored SFINAE usage to improve compile times. Added friendship support to customisation points, and made most customisations private. Changed any_io_executor to a "strong typedef"-style class. Fixed experimental::as_single to work with handler hook deprecation. Ensured pthread condition variable attributes are cleaned up on all platforms. Clarified thread safety notes on sockets and descriptors. Ensured errno is not overwritten if socket() fails on macOS/FreeBSD. Fixed work tracking for io_context and thread_pool executors when move-assigned. Ensured internal call_stack objects are accessed only from implementation files. Fixed I/O object move-assignment to ensure the executor is left in a valid state. Fixed detection of compiler support for defaulted template argument on functions with MSVC. Prevented the blocking.always property from being used with strand<>, as it did not produce the correct semantics. Removed deprecated file asio/impl/src.cpp. Atomic: Fixed compilation with MSVC for ARM. Beast: This update brings minor bug fixes and revamped CI reporting. 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. Bind: Add support for using the standard C++11 placeholders with boost::bind. Update boost::apply to use variadic templates and perfect forwarding. Container: Added [[no-discard]] attribute in all containers to catch bugs related to unused return values. Replaced default standard exception classes with Boost.Container own classes, reducing considerably the included files overhead. Example: in MSVC 19 boost/container/vector.hpp preprocessed file size reduces from 1,5MB to 930KB. If you still want to use standard exception classes, you can define BOOST_CONTAINER_USE_STD_EXCEPTIONS before using any Boost.Container class. Fixed bugs/issues: GitHub 102: "flat_map::insert ambiguous with initializer list & pairs that need to convert". GitHub 139: "flat_map merge and iterators". GitHub 141: "small_vector does not propagate no throw properties of move operation of contained type". GitHub 164: "Compile error when using pmr::map with a std::pair; works when using a std::tuple". GitHub 171: "deque::clear() uses undefined behaviour". Core: Add implicit conversion between compatible reference wrappers. Add boost/core/cmath.hpp, a portable implementation of the floating point classification functions from <cmath>. Add boost/core/bit.hpp, a portable implementation of the C++20 standard header <bit>. Fix BOOST_TEST_EQ, BOOST_TEST_NE for character types under C++20. Revise allocator access utilities (now support VS2013, and no workarounds use allocator_traits.) DLL: BREAKING CHANGE: boost::dll::import was renamed to boost::dll::import_symbol to avoid collision with C++20 import keyword. Updated docs, including FAQ section. Filesystem: Updated compatibility with WASI platform. Fixed an exception being thrown by path::remove_filename if the path is "////". Fixed create_directories disregarding errors from file status query operations issued internally. This could result in incorrect error codes returned by create_directories. GIL: BREAKING: In next release, we are going to drop support for GCC 5. We will also change the required minimum C++ version from C++11 to C++14. Intrusive: Reduced compile-time dependencies: linear_slist_algorithms use a simple node_ptr instead of std::pair on return. list/slist use operator </operator == instead of std::equal_to/std::less. Fixed GitHub 54: set.rbegin() looks like O(log(N)) Interprocess: Added wchar_t API support for named resources in operating systems that offer native wide character API (e.g. Windows). The following classes were updated with wchar_t name support: file_mapping managed_mapped_file managed_shared_memory managed_windows_shared_memory shared_memory_object windows_shared_memory_object file_lock named_condition named_condition_any named_mutex named_recursive_mutex named_semaphore named_sharable_mutex named_upgradable_mutex message_queue Added BOOST_INTERPROCESS_FORCE_NATIVE_EMULATION macro option to disable the use of generic emulation code for process shared synchronization primitives instead of native POSIX or Winapi functions. Fixed bugs: GitHub 76 ("Cygwin compilation errors"). GitHub 83 ("Add BOOST_INTERPROCESS_FORCE_NATIVE_EMULATION option"). GitHub 92 ("bufferstream: Correct MSVC compilation warning"). GitHub 106 ("Use fallocate on truncate_file"). GitHub 120 ("segment_manager customization"). GitHub 122 ("Mark constructors/assignment/swap noexcept where possible"). GitHub 126 ("_ReadWriteBarrier is deprecated warning when compiling with clang-cl.exe"). JSON: Security Report from Bishop Fox. Refactored value_from implementation; user customizations are now always preferred over library-provided overloads. Fix imprecise parsing for some floating point numbers. Fix link errors in standalone mode, when used alongside Boost. Fix Boost.Build builds on GCC 4.8. LexicalCast: Dropped dependency on Boost.Math Fixes for the CI and coverage Log: Bug fixes: Corrected a formal race condition in the thread-safe log record queue implementation used in the unbounded_fifo_queue policy of the asynchronous_sink frontend. The race could be detected by TSAN, but it was not a real problem on most current CPU architectures and compilers. When copying a logger with a channel attribute (e.g. channel_logger), the channel attribute is now deep-copied from the original logger. This means that modifying the channel in the new logger will no longer affect the original logger. Replaced the use of std::allocator<void> in template parameters with a new tag type boost::log::use_std_allocator to silence libc++ warnings about the former being deprecated in C++17 and later. The tag indicates that the instantiated template should be using a specialization of std::allocator internally to allocate dynamic memory, so the change has no functional effect. Boost.Log no longer defines __MSVCRT_VERSION__ macro on MinGW and MinGW-w64. Defining this macro caused incompatibility with UCRT, which is available as an option in recent MinGW-w64. See changelog for more details. Math: Breaking Change: C++03 support is now removed, a C++11 or later conformant compiler is now required to use this library. Added Z-test. Added execution policy support to univariate and bivariate statistics: enables parallel execution (requires C++17 and <execution>). Big update/improvement on CI testing. Bivariate statistics now have integer support. T-Test now has integer support. Linear regression now has integer support. Correct PDF of the beta distribution at the endpoints. Correct use of Stirling's approximation in certain multiprecision cases. Eliminate -Wimplicit-int-float-conversion on clang. Fix some constexpr issues in quaternion/octonion. Minor performance fix to tanh_sinh integration. Update hypergeometric functions internal scaling to allow for 64-bit (long long) exponents with multiprecision types. Move: Git Issue 35: "New nothrow move traits are incomplete". Multiprecision: BREAKING CHANGE: Massive refactoring and code simplification makes C++11 an absolute requirement. Use BOOST_TRY/CATCH in headers so code can be used in exception-free environments. Correct corner case in pow. Correct exception type thrown to match docs in lsb/msb. Allow moves and operators between related but different types (ie types with the same allocator). Nowide: Fix discarding of characters for text file streams when seek or sync functions are used and newlines were converted (e.g. on Windows) Fix potential use-after-free bug when reusing (via open) a file stream that has been closed Fix potential invalid memory access when using a file stream that has been moved or swapped to where the source had a put-back character or was set to unbuffered mode Fix compatibility with ucrt runtime by not defining __MSVCRT_VERSION__ Known issues: Read performance for text files is degraded. Binary files and writing is unaffected. Optional: Fixed MSVC warning C4702. Outcome: Announcements: BREAKING CHANGE: After a year and three major Boost releases announcing this upcoming change, this is the FIRST RELEASE of the v2.2 branch. This branch has a number of major breaking changes to the Outcome v2.1 which shipped in Boost 1.75 and earlier, see the documentation for details. Enhancements: VS2019.8 changed how to enable Coroutines, which caused Outcome to not compile on that compiler. If on C++ 20, we now use C++ 20 [[likely]] instead of compiler-specific markup to indicate when TRY has likely success or failure. BREAKING CHANGE: Previously the value of spare_storage(const basic_result|basic_outcome *) noexcept was not propagated over BOOST_OUTCOME_TRY, which causes things like stack backtraces captured at the point of construction of an errored result to get dropped at every TRY point. This has been fixed by adding an optional spare_storage to success_type<T> and failure_type<T>, as well as to auto success(T &&, ...) and auto failure(T &&, ...). Bug fixes: Boost.Outcome should now compile with 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. BREAKING CHANGE 244 It came as a shock to learn that BOOST_OUTCOME_TRY had been broken since the inception of this library for certain corner case code, which required a breaking change in how TRY works. See the changelog in the documentation for more detail. Parameter: Added a workaround for MSVC 2015 code miscompilation when an rvalue was used as a default value of a named parameter of a function. PFR: Fixed reflection of types with missing const in SFINAE expressions in template constructor. Now reflection of aggregates with std::optional<std::chrono::duration<???>> fields works on any Standard Library implementation, even if LWG3050 is not fixed. Comparison functions are now constexpr Fixed numerous typos in docs PolyCollection: Worked around GCC bug affecting GCC versions 9.3-10.2. Predef: Version 1.13 Add ARCH_PPC_64 predef. Fix ARCH_WORD_BITS* redefinition warnings/errors. Add ARCH_E2K, Elbrus 2000, architecture from Konstantin Ivlev. Fix not handling recent C++ version that go above 10.x version. Version 1.12 Switch to using the endian.h header on OpenBSD. (Brad Smith) Fix not handling recent versions of stdcxx that go above version 9. Fix including sub-BSD OS headers directly causing redef warnings. Add CI testing of direct inclusion of all headers. Add CI testing on FreeBSD for clang and gcc. Add WORD_BITS set of predefs to detect the architecture word size. Initial implementation inspired by submission from Mikhail Komarov. Add CI testing for Cygwin 32 and 64. PropertyTree: Property Tree has a new maintainer. Fix usage of deprecated Boost.Bind features. Link to Wikipedia fixed. Use BOOST_OVERRIDE to fix GCC warnings. Add extensive CI testing. Regex: Regex is now header only except in C++03 mode. Support for C++03 is now deprecated. The library can now be used "standalone" without the rest of Boost being present. Stacktrace: Better support for pre-C++11 builds on clang. Bigger warning for do not use boost::stacktrace::stacktrace in signal handlers. TypeTraits: Fix for Visual Studio managed code projects. Variant2: Improved generated code for the double buffered case. Updated Tools Build: Includes release of B2 version 4.4.1.
boost: Update to 1.75.0 Changelog: 1.75.0 New Libraries * JSON: JSON parsing, serialization, and DOM in C++11, from Vinnie Falco and Krystian Stasiowski. + Fast compilation requiring only C++11 + Easy and safe modern API with allocator support + Compile without Boost, define BOOST_JSON_STANDALONE + Optional header-only, without linking to a library * LEAF: A lightweight error-handling library for C++11, from Emil Dotchevski. + Small single-header format, no dependencies. + Designed for maximum efficiency ("happy" path and "sad" path). + No dynamic memory allocations, even with heavy payloads. + O(1) transport of arbitrary error types (independent of call stack depth). + Can be used with or without exception handling. * PFR: Basic reflection without macro or boilerplate code for user defined types, from Antony Polukhin. Updated Libraries * Asio: + Enabled support for UNIX domain sockets on Windows. + Added executor-converting construction and assignment to ip:: basic_resolver. + Added compatibility between polymorphic executors and the (deprecated) handler invocation hook. + Added the experimental::as_single completion token adapter. + Added support for MSG_NOSIGNAL on more platforms by using _POSIX_VERSION to detect whether it is supported. + Added the ability to compile using libpthread on Windows. + Added workarounds for the Intel C++ compiler. + Added more support for detecting and optimising for handlers that have no custom executor. + Reduced lock contention for timer cancellation on Windows. + Reinstated a previously removed null-pointer check, as it had a measurable impact on performance. + Fixed the executor concept to test for a const-qualified execute(). + Fixed any_executor support for builds without RTTI support. + Fixed the thread_pool unit test to work without RTTI support. + Fixed C++20 coroutines compatibility with clang on Windows. + Fixed some compatibility issues with Windows Runtime. + Fixed shadow name warnings caused by addition of asio::query. + Fixed a "logical ‘or’ of equal expressions" warning on linux. + Fixed a benign switch fallthrough warning. + Added missing push/pop_options.hpp includes. + Suppressed zero-as-null-pointer-constant warnings. + Fixed a comma-operator warning. + Updated the documentation to clarify when the select reactor is used on Windows. + Fixed potential ambiguity caused by any_executor comparisons and conversion. + Added detection of non-experimental C++20 coroutines on MSVC 19.8. + Fixed compatibility with uClibc. + Fixed strand<> adaptation of Networking TS executors when targeting older C++ versions or less conformant compilers. + Consult the Revision History for further details. * Atomic: + Implemented SSE2 and SSE4.1 versions of address lookup algorithm, which is used in the internal lock pool implementation. This may improve performance of waiting and notifying operations in heavily contended cases. + Fixed a possible compilation error on AArch64 targets caused by incorrect instructions generated for bitwise (logical) operations with immediate constants. (#41) * Beast: + This update brings bug fixes and support for the BOOST_ASIO_ENBALE_HANDLER_TRACKING compile flag from Boost.Asio: + 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. * Container: + New devector container. + Fixed bugs/issues: o #152 Tree-based containers have troubles with move-only types. o #156 Compile error with vector. o PR#157 Add missing include. o #159: pmr::monotonic_buffer_resource crashes on large single allocations. o #160: Usage of uses_allocator needs a remove_cvref_t. o #162: small_vector on MSVC x86 call-by-value crash. o #161: polymorphic_allocator(memory_resource*) non-standard extension causes headache. o PR#163: container_rebind for small_vector with options. o #165: Link error with shared library and memory_resource inline members. o PR#166: Fix encoding error in copyright headers. o PR#167: error: the address of 'msg' will always evaluate as 'true' warning with GCC 4.4. o #169: flood of warnings building dlmalloc_ext_2_8_6.c on clang11. * Endian: + endian_arithmetic no longer inherits from endian_buffer + When BOOST_ENDIAN_NO_CTORS is defined, the unaligned endian_buffer and endian_arithmetic are C++03 PODs, to enable use of __attribute__(( packed)) * Filesystem: + New: Added creation_time operation, which allows to obtain file creation time. (Inspired by PR#134) + The returned value of 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. + The returned value of hard_link_count(p, ec) operation in case of failure has been changed to static_cast<uintmax_t>(-1) instead of 0. + On POSIX systems, 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. + On Linux, many operations now use 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. + Removed 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) + On OpenBSD 4.4 and newer, use statvfs system call to obtain filesystem space information. (Inspired by PR#162) + On Windows, space now returns with an error if the provided path does not idendify an existing file. (#167) * GIL: + BREAKING: In next release, we are going to drop support for GCC 5. We may also change the required minimum C++ version from C++11 to C++14. * Histogram: + This update brings o Bug-fixes for corner-cases o Small documentation improvements o Fixes for new warnings from latest compilers and when compiling against the C++20 standard + See the full Release Notes for a complete list of changes. * Interprocess: + Fixed bugs: o #127: static assertion failure with boost interprocess 1.74 and basic_managed_shared_memory. * Intrusive: + Fixed bugs: o PR#48: MSVC "assignment within conditional" warning fix. o PR#49: Fix empty control statement warnings. o #52: Invalid casting in BOOST_INTRUSIVE_BSR_INTRINSIC. * Log: + Bug fixes: o Corrected the file counter that would be used in 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) o Replaced a volatile version counter in basic_sink_frontend with an atomic. (#128) o In the 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) + See changelog for more details. * Move: + Fixed bugs: o #30: (void) C-cast is a non-portable way of suppressing compiler warnings. * Mp11: + Added mp_pairwise_fold (suggested by Barry Revzin) + Removed mp_invoke (use mp_invoke_q) * Optional: + boost::none is constexpr-declared. + Fixed issue #78. * Outcome: + Announcements: o After a year and three major Boost releases announcing this upcoming change, this is the FINAL RELEASE of the v2.1 branch. From Boost 1.76 onwards, the v2.2 branch becomes the default. This branch has a number of major breaking changes to Outcome v2.1, see the documentation for details. + Enhancements: o The ADL discovered event hooks have been replaced with policy-specified event hooks instead. This is due to brittleness (where hooks would quietly self-disable if somebody changed something), compiler bugs (a difference in compiler settings causes the wrong hooks, or some but not all hooks, to get discovered), and end user difficulty in using them at all. The policy-specified event hooks can be told to default to ADL discovered hooks for backwards compatibility: set OUTCOME_ENABLE_LEGACY_SUPPORT_FOR to less than 220 to enable emulation. o Improve configuring 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. + Bug fixes: o Boost.Outcome should now compile with 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. o #236 In the Coroutine support the 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. * Polygon: + C++20 fixes for event_comparison_type, vertex_equality_predicate_type, and voronoi_predicates. (Glen Fernandes) * Preprocessor: + When variadic data is empty in C++20 mode with __VA_OPT__ support the variadic size has been corrected to be 0. This also means that in this C++20 mode it is now valid to convert to and from empty arrays and lists and variadic data. The end-user can read the "C++20 Support For Variadic Macros" part of the "variadic macros" topic for more information about empty variadic data in the library. + The macro BOOST_PP_IS_STANDARD() has been added for identifying if the currently used preprocessor is a C++ standard conforming preprocessor. A number of preprocessors which generally work correctly with the library but need various internal workarounds, including the currently default VC++ preprocessor, are not considered C++ standard conforming preprocessors. However most preprocessors, including among others gcc, clang, and the new but currently non-default VC++ preprocessor in VS2019, are C++ standard conforming preprocessors. + For C++ standard conforming preprocessors a number of the limits defined in the config/limits.hpp can now be changed to higher amounts for a TU. The end-user should read the "limitations" topic to understand how and which limits can be changed. + For C++ standard conforming preprocessors, in order to allow the maximum number of FOR and WHILE iterations, the beginning 'r' and 'd' iteration numbers in the user-defined macros start at 1 and not 2, as it did in previous releases. This could be a breaking change if these iteration numbers are used in the user-defined macros ( they probably would not be ), but the change was necessary to fix some arcane bugs when dealing with numerical/logical operations with maximum numbers as well to allow the user-defined macros to be called the correct possible maximum number of times. For non-C++ conforming preprocessors, this change was not made because those non-conforming C++ preprocessors generally have limitations which disallow the maximum number of looping constructs to be run, and it was felt not to introduce a possible breaking change to those more fragile preprocessors would be better. It was also felt that besides fixing some arcane preprocessor bugs and providing the possible maximum number of user-defined macro invocations, this change could be made because it has never been documented what the starting 'r' and 'd' iteration numbers actually are but only that these numbers are incremented for each iteration. + The library has been upgraded to assume variadic macro support for any compiler working with the library. Ostensibly this means that the library is now a C++11 on up library, yet most of the major compilers, including gcc, clang, and VC++, also support variadic macros in C++98/ C++03 mode as long as strict compliance to C++98/C++03 is not turned on when using one of those compilers. * Rational: + Fix Rational operators to not break under new C++20 operator== rewriting rules. (Glen Fernandes) * Signals2: + Correct C++ allocator model support to fix compilation in C++20 standards mode. (Glen Fernandes) * System: + The platform-specific headers windows_error.hpp, linux_error.hpp, and cygwin_error.hpp emit deprecation messages and are slated for removal. + The old names for 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. + The overload of 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. * uBLAS: + Correct C++ allocator model support to fix compilation in C++20 standards mode. (Glen Fernandes and Conrad Poelman) * VMD: + The VMD number parsing has been upgraded to support the ability for the end-user to change the number limits in the Preprocessor library. + The macro BOOST_VMD_IS_GENERAL_IDENTIFIER has been added to support the parsing of input that represents a preprocessor token which matches the VMD identifier syntax, without having to register the identifier as a specific identifier. * Wave: + Added new C++20 tokens, including the spaceship operator <=> + Fixed bugs: o #94: fix incorrect behavior of __LINE__ and __FILE__ under rescanning 1.74.0 New Libraries * STLInterfaces: A library of CRTP bases to ease the writing of STL views, iterators, and sequence containers, from Zach Laine. Updated Libraries * Asio: + Added an implementation of the proposed standard executors (P0443r13, P1348r0, and P1393r0). + Added support for the proposed standard executors to Asio's I/O facilities. o The supplied executors now meet the requirements for the proposed standard executors. These classes also continue to meet the existing requirements for the Networking TS model of executors. o All I/O objects, asynchronous operations, and utilities will interoperate with both new proposed standard executors, and with existing Networking TS executors. o The any_io_executor type alias has been introduced as the default runtime-polymorphic executor for all I/O objects. This defaults to the execution::any_executor<> template. If required for backward compatibility, BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT can be defined to use the old asio::executor polymorphic wrapper instead. o Support for the existing Networking TS model of executors can be disabled by defining BOOST_ASIO_NO_TS_EXECUTORS. + Added converting move construction and assignment to basic_waitable_timer. + Enabled C++20 coroutine support when using gcc 10. + Added overloads of co_spawn that launch an awaitable. + Added a new constructor overload to use_awaitable_t's default executor adapter, to enable conversion between executor types. + Added support for using detached_t as a default completion token, by adding members as_default_on() and as_default_on_t<>. + Added a move constructor to ssl::stream<>. + Changed ssl::stream<> write operations to linearise gather-write buffer sequences. + Added compile-time detection of the deprecated asio_handler_invoke, asio_handler_allocate, and asio_handler_deallocate hooks, when BOOST_ASIO_NO_DEPRECATED is defined. + Implemented a number of performance optimisations. + Added source location support to handler tracking. + Implemented various improvements to the handlerviz.pl tool. + Added the handlerlive.pl tool, which processes handler tracking output to produce a list of "live" handlers. + Added the handlertree.pl tool, which filters handler tracking output to include only those events in the tree that produced the nominated handlers. + Added changes for clang-based Embarcadero C++ compilers. + Fixed a deadlock that can occur when multiple threads concurrently initialise the Windows I/O completion port backend. + Fixed async_compose to work with copyable handlers when passed by lvalue. + Fixed completion signature deduction in co_spawn. + Removed a spurious Executor base class from the executor_binder implementation. + Various fixes and improvements in the documentation and examples. + Consult the Revision History for further details. * Atomic: + Added missing const qualifiers to some operations in atomic_ref. + Added support for yield instruction on ARMv8-A. The instruction is used internally in spin loops to reduce CPU power consumption. + Added support for C++20 waiting and notifying operations. The implementation includes generic backend that involves the internal lock pool, as well as specialized backends for Windows, Linux, FreeBSD, DragonFly BSD and NetBSD. Atomic types provide a new method has_native_wait_notify, a static boolean constant always_has_native_wait_notify and a set of capability macros that allow to detect if the implementation supports native waiting and notifying operations for a given type. + Changed internal representation of atomic_flag to use 32-bit storage. This allows for more efficient waiting and notifying operations on atomic_flag on some platforms. + Added support for build-time configuration of the internal lock pool size. The user can define the BOOST_ATOMIC_LOCK_POOL_SIZE_LOG2 macro to specify binary logarithm of the size of the lock pool. The default value is 8, meaning that the size of the lock pool is 256, up from 64 used in the previous release. + Added support for a new set of atomic types dedicated for inter-process communication: ipc_atomic_flag, ipc_atomic and ipc_atomic_ref. Users are recommended to port their code using non-IPC types for inter-process communication to the new types. The new types provide the same set of operations as their non-IPC counterparts, with the following differences: o Most operations have an added precondition that is_lock_free returns true for the given atomic object. The library will issue a compile time error if this precondition is known to be not satisfied at compile time. o All provided operations are address-free, meaning that the atomic object (in case of ipc_atomic_ref - the referenced object) may be located in process-shared memory or mapped into the same process at multiple different addresses. o The new has_native_wait_notify operation and always_has_native_wait_notify constant indicate support for native inter-process waiting and notifying operations. When that support is not present, the operations are implemented with a busy loop, which is less efficient, but still is address-free. A separate set of capability macros is also provided to indicate this support. + Added new atomic_unsigned_lock_free and atomic_signed_lock_free types introduced in C++20. The types indicate the atomic object type for an unsigned or signed integer, respectively, that is lock-free and preferably has native support for waiting and notifying operations. + Added new gcc assembler backends for ARMv8-A (for both AArch32 and AArch64). The new backends are used to implement operations not supported by compiler intrinsics (including 128-bit operations on AArch64) and can also be used when compiler intrinsics are not available. Both little and big endian targets are supported. AArch64 backend supports extensions defined in ARMv8.1 and ARMv8.3. + Added support for big endian targets in the legacy ARM backend based on gcc assembler blocks (this backend is used on ARMv7 and older targets). Previously, the backend assumed little endian memory layout, which is significant for 64-bit operations. + Improved performance of seq_cst stores and thread fences on x86 by using lock-prefixed instructions instead of mfence. This means that the operations no longer affect non-temporal stores, which was also not guaranteed before. Use specialized instructions and intrinsics to order non-temporal memory accesses. + Fixed capability macros for 80-bit long double on x86 targets not indicating lock-free operations even if 128-bit atomic operations were available. + Fixed compilation of gcc asm blocks on Alpha targets. + In the gcc __sync* intrinsics backend, fixed that store and load operations of large objects (larger than a pointer size) could be non-atomic. The implementation currently assumes that small objects can be stored with a single instruction atomically on all modern architectures. * Beast: + This update brings bug fixes and support for the following changes changes in Boost.Asio: + Beast supports BOOST_ASIO_NO_DEPRECATED. Define this to help identify areas of your Beast and Asio code which use deprecated Asio interfaces. + Beast also supports BOOST_ASIO_NO_TS_EXECUTORS. Define this to identify uses of executors from the now potentially outdated Networking TS + Asio will use the Standard Executors model by default. You can prevent this behaviour by defining BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT in which the Networking TS model will be used by default. Setting this flag does not prevent a program from using executors from the Standard Executors model explicitly. + 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. * Bimap: + Correct allocator usage (fixes C++20 compilation). (Glen Fernandes) * Config: + Implement BOOST_NO_CXX11_OVERRIDE and BOOST_OVERRIDE. (Glen Fernandes) * Core: + Implemented the allocator access utilities which provide a replacement for allocator_traits with individual traits and functions for each facility. They support the C++11 allocator model when possible and provide a fallback for C++98 compatibility. These are now used in Circular_Buffer, Wave, Lockfree, Heap, Smart_Ptr, Dynamic_Bitset, Format, Bimap and more. (Glen Fernandes) * DLL: + Multiple fixes for the library_info work on empty shared objects. + Compilation fixes for C++98 and C++11 modes (#28). + Fixes for smart_library manglings (thanks to XiaLiChao82 #37). * Endian: + Enabled scoped enumeration types in endian_reverse. + Enabled bool, enum, float, double in endian_reverse_inplace. + Added an overload of endian_reverse_inplace for arrays. * Filesystem: + Removed compile-time checks for support for symlinks and hardlink on Windows. Instead, a runtime check is used. (PR#142) + Fixed handling of reparse points in canonical and read_symlink on Windows. This also affects other algorithms that involve canonical and read_symlink in their implementation. (PR#100, #85, #99, #123, #125) + Fixed that read_symlink on Windows could potentially fail or cause failures elsewhere with a sharing violation error, if the same symlink was opened concurrently. (#138) + Fixed that is_symlink(directory_entry) would always return false, even if the directory entry actually referred to a symlink. (PR#148) + Added missing status inspection operation overloads for directory_entry and error_code (e.g. is_directory(directory_entry, error_code&)). Removed incorrect noexcept specifications for the overloads not taking the error_code arguments. + copy_file implementation has been updated to perform checks on the source and target files, as required by C++20 ([fs.op.copy.file]/4.1). In particular, the operation will fail if the source or target file is not a regular file or the source and target paths identify the same file. + copy_file on POSIX systems will now also copy the source file permissions to the target file, if the target file is overwritten. + New: Added copy_file implementations based on sendfile and copy_file_range system calls on Linux, which may improve file copying performance, especially on network filesystems. + Deprecated: The copy_option enumeration that is used with the copy_file operation is deprecated. As a replacement, the new enum copy_options (note the trailing 's') has been added. The new enum contains values similar to the copy_options enum from C++20. The old enum values are mapped onto the new enum. The old enum will be removed in a future release. + New: Added copy_options::skip_existing option, which allows copy_file operation to succeed without overwriting the target file, if it exists. + New: Added copy_options::update_existing option, which allows copy_file operation to conditionally overwrite the target file, if it exists, if its last write time is older than that of the replacement file. + New: copy_file now returns bool, which indicates whether the file was copied. + New, breaking change: copy operation has been extended and reworked to implement behavior specified in C++20 [fs.op.copy]. This includes support for copy_options::recursive, copy_options::copy_symlinks, copy_options::skip_symlinks, copy_options::directories_only, copy_options::create_symlinks and copy_options::create_hard_links options. The operation performs additional checks based on the specified options. Applying copy to a directory with default copy_options will now also copy files residing in that directory (but not nested directories or files in those directories). + New: Added create_directory overload taking two paths. The second path is a path to an existing directory, which is used as a source of permission attributes to use in the directory to create. + Deprecated: copy_directory operation has been deprecated in favor of the new create_directory overload. Note that the two operations have reversed order of the path arguments. + equivalent on POSIX systems now returns the actual error code from the OS if one of the paths does not resolve to a file. Previously the function would return an error code of 1. (#141) + equivalent no longer considers file size and last modification time in order to test whether the two paths refer to the same file. These checks could result in a false negative if the file was modified during the equivalent call. + New: Added absolute overloads taking error_code argument. + Operations that have current_path() as the default value of their arguments and also have an error_code argument will use the current_path(error_code& ec) overload to obtain the current path, so that its failure is reported via the error_code argument instead of an exception. + space now initializes the space_info structure members to -1 values on error, as required by C++20 ([fs.op.space]/1). + space on Windows now accepts paths referring to arbitrary files, not only directories. This is similar to POSIX systems and corresponds to the operation description in C++20. (#73) + New: Added implementation of temp_directory_path for Windows CE. (PR#25 ) + New: Improved compatibility with WASI platform. (PR#144) + New: Improved support for Embarcadero compilers. (PR#130) + New: Added implementations of unique_path operation based on getrandom (Linux), arc4random_buf (OpenBSD/FreeBSD/CloudABI) and BCrypt (Windows) system APIs. + Deprecated: Auto-linking against system libraries on Windows with MSVC-compatible compilers is deprecated and will be removed in a future release. This affects users linking against static library of Boost.Filesystem. Users are advised to update their project build systems to either use a shared library of Boost.Filesystem, or explicitly specify the dependencies of Boost.Filesystem in the linker command line. Users of shared library of Boost.Filesystem are not affected. * Flyweight: + Maintenance work. * Format: + Correct allocator usage (fixes C++20 compilation). (Glen Fernandes) * Geometry: + Improvements o PR#720 Additional R-tree constructors (thanks to Caian Benedicto). o Various improvements in buffer, set and relational operations. + Solved issues o #709 memcpy called for object with no trivial copy-assignment. o #721 Compilation error in bgi::detail::rtree::visitors::insert. o #727 MSVC warning: conditional expression is constant. + Bugfixes o PR#700 Missing cases for default strategies in distance algorithm. o PR#738 Longitudes out of range in direct geodesic formulas. * GIL: + Added o Added new constructor initializing any_image from r-value reference to any image (PR#486). o Implemented mechanism to reverse kernel_2d (PR#489). + Changed o BREAKING: Replace Boost.Variant with Boost.Variant2 (PR#474) which completes removal on uses of Boost.MPL (missing from Boost 1.72.0 change added PR#274). o Use perfect forwarding from apply_operation to visit (PR#491). + Removed o BREAKING: Removed dependency on Boost.Variant + Fixed o Fixed invalid conversion from RGB8 to CMYK32 due to overflow (PR# 470). o Fixed image constructor from other image (PR#477). o Fixed error plane_view_t is not a class or namespace name (PR#481). o Fixed interleaved_view factory using point<std::ptrdiff_t> for dimension (PR#487). o Fixed documentation replacing uses MPL with MP11 in tutorial (PR# 494). o Fixed missing header in numeric/kernel.hpp to make it self-contained (PR#502). + Acknowledgements o Samuel Debionne, Pranam Lashkari, Mateusz Loskot, Debabrata Mandal * Heap: + Correct destruction of top node in skew_heap. (Glen Fernandes) + Correct and simplify allocator use. (Glen Fernandes) * Integer: + Fixed compilation of gcd in C++20 mode with clang 10. + Improved support for Embarcadero compilers. (PR#21) * Iterator: + boost/function_output_iterator.hpp header is now deprecated. Users should replace its inclusion with boost/iterator/ function_output_iterator.hpp. (PR#51) + Improved support for Embarcadero compilers. (PR#55) * LexicalCast: + Fixed warnings on missing override (thanks to EugeneZelenko #35, #34). + Fixes for the the Embarcadero compilers (thanks to Edward Diener). * Log: + Bug fixes: o The syslog sink backend now verifies the IP version of the local and target addresses set by user. The addresses must have the same IP version as was specified in the ip_version named parameter on the sink backend construction (by default, IPv4 is assumed). When an address is obtained as a result of host name resolution, only addresses with matching IP version are considered. (#119) + New Features: o Move constructors and assignment operators of various components were marked noexcept. o Added a new range_manip stream manipulator that can be used for outputting elements of a range, optionally separated by a delimiter. o Added a new tuple_manip stream manipulator that can be used for outputting elements of a tuple or any other heterogeneous sequence, optionally separated by a delimiter. o Added a new optional_manip stream manipulator that can be used for outputting optionally present values. + See changelog for more details. * Mp11: + Improved compilation performance of mp_with_index<N> for large N. + Added tuple_transform (contributed by Hans Dembinski.) * Multi-index Containers: + Added node extraction and insertion following the analogous interface of associative containers as introduced in C++17. This feature has also been extended to non key-based indices, in contrast to C++ standard library sequence containers, which do not provide such functionality. + Clarified documentation on read/write key extractors (issue #32). + Maintenance work. * Nowide: + The library now requires a C++11-compliant compiler and stdlib + LFS: Add support for files > 2 GB where the underlying system supports it + Generic UTF conversion functions are now available in the boost::nowide ::utf namespace + Add support for stat with UTF-8 paths * Outcome: + Announcements: o The v2.1 branch is expected to be retired end of 2020, with the v2.2 branch becoming the default. You can use the future v2.2 branch now using better_optimisation. This branch has a number of major breaking changes to Outcome v2.1, see the front page for details. + Enhancements: o BREAKING CHANGE void results and outcomes no longer default construct types during explicit construction. Previously if you explicitly constructed a result<T> from a non-errored result<void>, it default constructed T. This was found to cause unhelpful surprise, so it has been disabled. o New macro OUTCOME_ENABLE_LEGACY_SUPPORT_FOR. The macro OUTCOME_ENABLE_LEGACY_SUPPORT_FOR can be used to enable aliasing of older naming and features to newer naming and features when using a newer version of Outcome. o Concepts now have snake case style naming instead of camel case style. When Outcome was first implemented, it was thought that C++ 20 concepts were going to have camel case style. This was changed before the C++ 20 release, and Outcome's concepts have been renamed similarly. This won't break any code in Outcome v2.1, as compatibility aliases are provided. However code compiled against Outcome v2.2 will need to be upgraded, unless OUTCOME_ENABLE_LEGACY_SUPPORT_FOR is set to 210 or lower. o Concepts now live in OUTCOME_V2_NAMESPACE::concepts namespace. Previously concepts lived in the convert namespace, now they live in their own namespace. o New concepts basic_result<T> and basic_outcome<T> added. End users were finding an unhelpful gap in between is_basic_result<T> and value_or_error<T> where they wanted a concept that matched types which were basic_result, but not exactly one of those. Concepts filling that gap were added. o Operation TRY works differently from Outcome v2.2 onwards. This is a severely code breaking change which change the syntax of how one uses OUTCOME_TRY(). A regular expression suitable for upgrading code can be found in the list of changes between Outcome v2.1 and v2.2. + Bug fixes: o #224 The clang Apple ships in Xcode 11.4 (currently the latest) has not been patched with the fixes to LLVM clang that fix noexcept(std ::is_constructible<T, void>) failing to compile which I originally submitted years ago. So give up waiting on Apple to fix their clang, add a workaround to Outcome. o Spare storage could not be used from within no-value policy classes. Due to an obvious brain fart when writing the code at the time, the spare storage APIs had the wrong prototype which prevented them working from within policy classes. Sorry. * PolyCollection: + Fixed internal ambiguity problem between boost::type_erasure::any and boost::any (issue #17). + Maintenance work. * SmartPtr: + Added owner_equals to shared_ptr, weak_ptr, local_shared_ptr. + Added owner_hash_value to shared_ptr, weak_ptr. + Added owner_equal_to, owner_hash. + Added std::hash specializations for shared_ptr, local_shared_ptr. + Added boost::hash support to, and std::hash, std::equal_to specializations for, weak_ptr. * Stacktrace: + Fixed a build error when compiled with -fno-exceptions (thanks to Jeremiah Rodriguez #91). * System: + operator bool() now returns failed() instead of value() != 0. * Type_Traits: + Implemented conjunction, disjunction, negation, is_trivially_copyable, is_scoped_enum, and is_unscoped_enum. (Glen Fernandes) * Variant: + Fixed warnings on missing override (thanks to EugeneZelenko #78). + Fixes for the the Embarcadero compilers (thanks to Edward Diener #79). + Updated header locations to avoid warnings about using deprecated headers (thanks to Andrey Semashev #80) * Variant2: + Added support for derived types in visit. + Improved compilation performance for many (hundreds of) alternatives. + Added support for visit<R>. * Wave: + Implement C++20 features for variadics, including __VA_OPT__ (PR#75) + Implement __has_include (PR#102) + Introduce new sample: check_macro_naming, useful with Boost itself (PR# 97) + Fix compilation issue caused by std::allocator member removal in C++20 (PR#72) + Repair Xpressive lexer and token_statistics sample (PR#79) + Repair lexertl lexer (PR#78) + Ensure hooks are run on predefined macros as well (PR#87) + Various minor bug fixes + C++98/03 support is now deprecated and will be removed in 1.77 * YAP: + Fixed compilation errors for placeholders; they now work in the general case, and in particular work with yap::print(). + constexpr all the YAP. + Fix printing of correct value category in yap::print(). + Doc clarification. Updated Tools * Boostbook: + Change encoding of generated documentation from US-ASCII to UTF-8. (Glen Fernandes)
*: Recursive revbump from textproc/icu-68.1
Revbump for icu
boost: updated to 1.73.0 1.73.0: Known Issues ------------ These are patches from library authors which were found too late to be fixed in the release. Be careful as they have not been through the normal testing process. New Libraries ------------- Nowide: Standard library functions with UTF-8 API on Windows, from Artyom Beilis. StaticString: A dynamically resizable string of characters with compile-time fixed capacity and contiguous embedded storage, from Vinnie Falco and Krystian Stasiowski Updated Libraries ----------------- Align: * Update aligned_alloc to support older mingw32. Any: * Speedup compilation by not including <algorithm>. * Maintenance work, including CI hardening. Asio: * Fixed compatibility with C++20 concept syntax. * Marked the POSIX descriptor classes' move constructors as noexcept. * Added the ssl::host_name_verification class, which is a drop-in replacement for ssl::rfc2818_verification. The ssl::rfc2818_verification class has been marked as deprecated. As a consequence of this change, SSL support now depends on functions that were introduced in OpenSSL 1.0.2. * Added an ssl::context constructor to take ownership of a native handle. * Changed C++ language version detection with gcc to use __cplusplus macro. * Fixed a work counting issue in the asynchronous resolve operation for endpoints. * Fixed the strand<> converting constructors and assignment operators. * Ensured that resolvers are restarted correctly after a fork. * Fixed compatibility with the current NetBSD release. * Removed spurious handler requirement checks in some async_read overloads. * Changed the ssl::context class to propagate non-EOF errors from the add_certificate_authority function. * Fixed a Windows-specific thread_pool destructor hang that occurred when the pool had an associated I/O object. * Changed the select reactor to recreate the "self pipe trick" sockets on error. This addresses an issue on some versions of Windows, where these sockets are discconected after a system sleep. * Fixed a compile error in the buffered streams due to the lack of reference collapsing in C++98. * Changed the priority_scheduler example to demonstrate calls to shutdown() and destroy(). * Removed some unnecessary null pointer checks. * Changed Windows platform detection to recognise TV titles as Windows apps. * Added some emscripten compatibility patches. * Fixed a compile error in the use_awaitable_t::as_default_on function. * Changed all uses of the boost.bind placeholders to use the boost::placeholders namespace. * Fixed a potential compile error in the async_compose implementation due to incorrect overload selection. * Suppressed some non-virtual destructor warnings. * Various documentation fixes and improvements. Assert: * Added source_location. Atomic: * Implemented C++20 atomic_ref. See docs and especially the caveats section. * Implemented atomic_flag::test operation, which was introduced in C++20. * atomic<T> should now take into account alignment requirements of T, which makes a difference if those requirements are higher than that of the internal storage of atomic. * Added static asserts enforcing the requirements on the value type T used with atomic and atomic_ref. This should prohibit invalid types from being used as atomics. * Improved internal lock pool implementation. The pool is larger, and lock selection accounts for atomic object alignment, which should reduce the potential of thread contention. * Fixed incorrect x86 code generated for bit_test_and_* operations on 8 and 16-bit arguments. Other architectures are not affected. * Fixed a possible unaligned memory access in compare_exchange_* operations, if alignment requirements of value_type are less than that of the internal storage of atomic. * boost/atomic/atomic.hpp no longer includes boost/atomic/atomic_flag.hpp and boost/atomic/fences.hpp and only defines the boost::atomic class template and related typedefs. Include the other headers explicitly or use boost/atomic.hpp to include all parts of Boost.Atomic. * The atomic<T>::storage() accessor and associated atomic<T>::storage_type type are deprecated. Instead, users are advised to use atomic<T>::value() and atomic<T>::value_type, respectively. Users can define BOOST_ATOMIC_SILENCE_STORAGE_DEPRECATION to disable deprecation warnings for the time of transition. The deprecated pieces will be removed in a future release. * Removed support for BOOST_ATOMIC_DETAIL_HIGHLIGHT_OP_AND_TEST. This macro was used as a helper for transition to the updated returned values of *_and_test operations in Boost.Atomic 1.67, which was released 2 years before 1.73. Beast: * This is a maintenance update. * Nested mutable_data_type in Beast dynamic buffers is deprecated. * We'd love to know how you or your company use Beast, consider adding an entry to the Companies and Individuals Using Beast list. * See the full Release Notes for a complete list of changes. Context: * IBM Z: Fix fcontext routines * mips64/n64: .align 3 * Use OSPLAT MIPS32/MIPS64 to set different ABI * Fix non-PIC in RISC-V assembly Conversion: * Added boost::polymorphic_downcast for references (thanks to Julien Delacroix for the patch). * Significant docs update. date_time: * Support constexpr in c++14 and above * Make date_time all inline. Users no longer need to link the library for any functions. Library remains for build compatibility. * Deprecate support for legacy io and USE_DATE_TIME_PRE_1_33_FACET_IO macro * Misc documentation updates and bugfixes. DLL: * Fixes and tests for demangling in boost::dll::smart_library * Make UB sanitizers happy with boost::dll::load_mode::type * Ceased dependence on MPL improving compile times * Clang and ICC on Windows fixes and CI support for those platforms * Maintenance work, including CI hardening and tests improving. Dynamic Bitset: * Fixed a portability issue in the definition of the maximum block limit. Flyweight: * Maintenance work. Geometry: * Improvements - Missing input combinations in intersection() and introduction of tupled-output. - Added d3::point_xyz geometry model (thanks to Digvijay Janartha). * Solved issues - Incorrect definition of EPSG:3785. * Bugfixes - R-tree exception-safety improvement. - Andoyer inverse formula fixed for close points. - Fixed dangling reference in distance algorithm. * Deprecation - Support for C++03 has been deprecated and Geometry will require C++14 from Boost 1.75 onwards. GIL: * Added move constructor and move assignment operator to image class * New member function size() in any_image_view class * Replace Boost.Test with Boost.LightweightTest as the only test framework used in GIL. This also restructured the test/extension/io/ sub-tree and targets in related Jamfile-s. * Removed remaining uses of Boost.MPL * Renamed all macros using BOOST_GIL_ prefix * Renamed all CMake configuration options using BOOST_GIL_ prefix * Removed extension/dynamic_image/reduce.hpp as unused and possibly unfinished. An implementation attempt of techniques described in the paper Efficient Run-Time Dispatching in Generic Programming with Minimal Code Bloat by Lubomir Bourdev, Jaakko Jarvi. * Removed direct dependency on Boost.MPL, Boost.System and Boost.Test. * Started removing public macros for compile-time configuration of I/O extension tests, i.e. BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES and BOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES. Instead, if a test target is built, it builds all its test cases unconditionally. * Avoid longjmp interaction during destruction of I/O extension objects. * Fixed missing alignment default value in constructor of image class. * Fixed segmentation fault when reading corrupted PNG file. * Fixed illegal initialization of return values in the old IOv1 interface of I/O extension. Histogram: * Added crop command to reduce algorithm * slice command in reduce now works on category axis * Added count accumulator, can be used to add arbitrary metadata to each cell * sum algorithm gained a new argument to optionally sum only over inner bins * Several fixes for bugs in corner cases * Enhanced documentation icl: * Remove references to date_time compiled library. * Fix forward decl lower and upper less equal. * Misc bugfixes. IO: * Made all the IOS state saver classes non-copyable. (Glen Fernandes) * Correctly handle error upon first read from the input stream when reading a quoted string. (Glen Fernandes) * Implemented ostream_joiner for delimiter based joining. (Glen Fernandes) * Relocated ostream_string from the Utility library to the IO library as ostream_put. * Correctly handle stream width and fill in quoted output. (Glen Fernandes) * Optimize quoted output to write directly to the stream buffer. (Glen Fernandes) * Glen Fernandes became the maintainer of the IO library. LexicalCast: * Maintenance work, including CI hardening and better workarounds for broken standard libraries Log: * Default sink used in trivial logging, when no sinks are registered in the logging core, now automatically flushes output after each log record * core::flush now performs a flush on the default sink used for trivial logging, when no sinks are registered. * Added a workaround for some syslog API implementations (e.g. glibc), which do not save the application identification string in openlog call. Such implementations could access already freed memory on each syslog call, resulting in undefined behavior. * Fixed that log file rotation on a specific day of month (e.g. rotation_at_time_point(boost::gregorian::greg_day(1))) could be silently ignored and not happen. * Fixed that text_file_backend::rotate_file could throw if there were no log records written yet and target file name pattern was set. * Ported various components of the library to std::allocator_traits to improve compatibility with C++20 allocators. * Fixed compilation errors when building in MSYS2 Cygwin environment. Math: IMPORTANT: C++03 support is now deprecated and will be removed from March 2021. * Added Cubic Hermite Interpolation. * Added Modified Akima Interpolation. * Added PCHIP Interpolation. * Added Quintic Hermite Interpolation. * Added entropy to numerous distributions. * Allow trivial quadrature case where the two end points are equal, and in addition allow bounds to be interchanged. * Fix exp_sinh quadrature to work with complex types over a non-native range. * Fix miscellaneous compiler warnings in factorial.hpp. * Use std::chrono rather than boost::chrono in timed pFq calculations. * Remove much of the old boost::mpl dependencies to improve constexpr support. Mp11: * Added mp_unique_if (contributed by Kris Jusiak) * Added mp_flatten * Added mp_rotate_left, mp_rotate_right (contributed by Duncan Barber) * Added mp_compose * Added mp_power_set * Added mp_partial_sum * Added mp_iterate Multi-index Containers: * multi_index_container is now AllocatorAware. * Swapping of internal KeyFromValue, Compare, Hash and Pred objects now selects the appropriate swap function between std::swap and ADL candidates, in accordance with standard specifications in [swappable.requirements] * Provided some internal copy constructors and assignment operators whose default implicit definition is deprecated in C++11 onwards ([depr.impldec]), which was warned about on some compilers. Multiprecision: * IMPORTANT: Mark C++03 support as deprecated and due for removal in 2021. * Big update to cpp_int adds faster Karatsuba and Coomba multiplication routines. * Fix conversion of gmp_rational to long double and __float128 * Fix up libtommath support to function with the latest libtom releases. * Fix up some incompatibilities with the latest Intel C++ compiler. * Fix up constexpr arithmetic support for latest MSVC release. Outcome: * Performance of Outcome-based code compiled by clang has been greatly improved. The previous implementation of Outcome's status bitfield confused clang's optimiser, which caused low quality codegen. Unlike most codegen issues, this was noticeably in empirical benchmarks of real world code, as was shown by P1886 Error speed benchmarking. * The safe part of the better_optimisation Outcome v2.2.0 future branch was merged to Outcome v2.1.3 which includes a new status bitfield implementation. This appears to not confuse clang's optimiser, and clang 9 produces code which routinely beats GCC 9's code for various canned use cases. * Installability is now CI tested per commit. Due to installability of standalone Outcome (e.g. make install) breaking itself rather more frequently than is ideal, installability is now tested on CI per commit. * Newer Concepts implementing compilers were unhappy with the early check for destructibility of T and E, so removed template constraints, falling back to static assert which runs later in the type instantiation sequence. * A false positive undefined behaviour sanitiser failure in some use cases of Experimental Outcome was worked around to avoid the failure message. PolyCollection: * Suppressed a potential redundant move warning in boost::poly_collection::for_each. * Fixed a bug by which elements were copied rather than moved in allocator-extended move construction and move assigment between collections with non-propagating, unequal allocators. * Allocator-extended move construction no longer decays to allocator-extended copy construction for the legacy version of libstdc++-v3 shipped with GCC 4.8 (which can also be used by Clang). Stacktrace: * Added documentation on distribution of PDBs * Fixed msvc-9 build * Maintenance work, including test fixes fixing typos CI improvements and hardening, inspect tool fixes. Test: * Boost.test v3.13 see the Changes log for more details. * New feature: It is now possible to combine tolerance indication, user message and collection comparison modifier in a single BOOST_TEST expression. See change logs for more details. ThrowException: * Added an overload of throw_exception that takes a boost::source_location object. * NOTE: Projects using BOOST_THROW_EXCEPTION with exceptions disabled will need to add a definition of this new overload. TTI: * Added introspection of function templates for more recent C++ compilers versions from gcc and vc++. as well as all versions of clang. Older versions of vc++ before 14.0 and gcc prior to 4.8 may fail. * Added specific introspection for elements of struct/class, enum, and union types, which can be used for more fine-grained introspection than the general 'type' introspection. TypeIndex: * Maintenance work, including CI integration with inspect tool. Utility: * The ostream_string facility has moved from the Utility library to the IO library as ostream_put. Variant: * Removed unused includes * Fixed zero-as-null-pointer-constat warnings * Maintenance work, including typo fixes. Variant2: * Added support for std::hash, boost::hash. * variant<T...> is now trivial when all types in T... are trivial. This improves performance by enabling it to be passed to, and returned from, functions in registers. WinAPI: * Headers in boost/detail/winapi are deprecated and will be removed in a future release. * Boost.WinAPI headers no longer include winerror.h. Include boost/winapi/error_codes.hpp to get Windows error codes.
Recursive revision bump after textproc/icu update
boost-libs: Fix build failure on NetBSD/amd64 8 and lang/gcc7 * PCH option generates errors on NetBSD/amd64 8 and lang/gcc7 environment.
Fix boost-libs PLIST on devuan linux distro
devel: align variable assignments pkglint -Wall -F --only aligned --only indent -r No manual corrections.
Update to 1.70.0 Changelog: New Libraries Outcome: A set of tools for reporting and handling function failures in contexts where directly using C++ exception handling is unsuitable, from Niall Douglas. Histogram: Fast and extensible multi-dimensional histograms with convenient interface for C++14, from Hans Dembinski. Updated Libraries Asio: This release includes a number of new features, bug fixes, performance enhancements, and documentation improvements. Notable changes include: Added the ability to use custom I/O executors with I/O objects (such as sockets). Added a new async_result form with an initiate static member function. Updated the Coroutines TS support and promoted it to the asio namespace. Added a new DynamicBuffer_v2 concept which is CopyConstructible. Added a new async_compose function that simplifies the implementation of user-defined asynchronous operations. Added a make_strand helper function. Relaxed the completion condition type requirements to only require move-constructibility rather than copy-constructibility. Added a constructor for local::basic_endpoint that takes a string_view. Added the noexcept qualifier to various functions. Added a new BOOST_ASIO_DISABLE_VISIBILITY configuration #define. Enabled recycling of the memory used to type-erase a function object with the polymorphic executor. Changed receive operations to return the correct number of bytes transferred when truncation (error::message_size) occurs on a datagram-oriented socket. Fixed calculation of absolute timeout when the backend uses pthread_cond_timedwait. Changed the range-based asynchronous connect operation to deduce the EndpointSequence iterator type. Fixed buffer_sequence_begin and buffer_sequence_end to prevent implicit conversion. Ensured SSL handshake errors are propagated to the peer before the local operation completes. Suppressed the eof error on SSL shutdown as it actually indicates success. Added a fallback error code for when we OpenSSL produces an SSL_ERROR_SYSCALL result without an associated error. Changed composed asynchronous read and write operations to move buffer sequence objects. Fixed a macOS-specific warning about the deprecation of OSMemoryBarrier. Fixed compile errors that occur when using the composed read and write operations with MSVC 11.0. Improved dispatch, post and defer documentation. Fixed a Windows-specific memory leak that may occur when system_executor is used. Consult the Revision History for further details. Beast: BIG Update!!! Some APIs have changed. The reference shows a star ★ next to each new item. Beast needs your help! Tell Us how you or your company use Beast Please report any bugs, feature requests, or general feedback Join the C++ Slack Workspace for free and chat with us in the #beast and #boost channels Don't forget to star the repository ⭐! More tutorials, code like the pros! Networking Refresher teaches you from the ground up. Updated Asynchronous Echo example Updated Detect SSL composed operation tutorial websocket-chat-multi threaded chat server with a JavaScript browser client basic_stream and tcp_stream offer: Timeouts: async_read_some, async_write_some complete with error::timeout on expiration! Traffic-shaping policies simple and unlimited, or a user-defined RatePolicy! Put the strand directly on the socket using P1322R0, no more bind_executor at call sites! Base classes async_base and stable_async_base and handle all composed operation boilerplate for you. ssl_stream provides a movable, assignable SSL stream with a flat write optimization. All asynchronous operations use Asio's async_initiate for efficient integration with Coroutines TS. ⚡ faster compilation, define BOOST_BEAST_SEPARATE_COMPILATION and #include <boost/beast/src.hpp> in one of your .cpp files! See the full Release Notes for a complete list of changes. Context: #91: cleanup of stack if creating ucontext fails #97: add missing BOST_CONTEXT_DECL in stack_context #98: fix jump_i386_sysv_macho writing garbage to the x87 control word Coroutine2: #28: don't crash on pthread_cancel DLL: New macro BOOST_DLL_USE_STD_FS. Define it to 1 to make the Boost.DLL use C++17's std::filesystem::path, std::system_error and std::error_code (#21). Note that exception types change from boost::system::system_error to std::system_error, so make sure to update catches. Significant rewrite of the dynamic loadable detection and decoration logic. More precise errors are now reported in case of loading failures. Added shared_library::decorate() function that returns a decorated path to the library without doing any platform related queries and detections. Prefer using shared_library::load and shared_library constructors for better results (many thanks to Loïc Touraine for the work PR#23). CI hardening, docs updates, typos fixes, cleanups and mg #196: fix high contention on remote_ready_splk_ Filesystem: Fixed a few instances of dereferencing std::string::end() in path implementation. Fixed program termination in case of out of memory condition in directory iteratorsnce to error_code. (#58) Fixed possible linking errors caused by missing definitions of static members of path. (#12759) Fixed possible use of uninitialized data in directory iterator increment operation on Linux. Added support fortatus query overloads for directory_entry. This avoids a relatively expensive OS query when file status is requested for a result of dereferencing a directory iterator. (PR#55) Reworked current_path and read_symlink implementation to avoid possiblfilesystems. The functions now have an internal limit of the path size they will accept from the OS, which is currently 16 MiB. Increased the size of the internal buffer used by copy_file. Integer: Added Extended Euclidean Algorithm and Modular Multiplicative Inverse function. (Nick Thompson, PR#11) Log: New features: Added support for generating another log file name before collecting the file in the text file sink backend. This allows to combine appending to aexisting log file with timestamps and file counters in log filenames, and, consequently, file collection in general. See changelog for more details. Math: New features: Add Lanczos smoothing derivatives Move numols/ to boost/math/differentiation/finite_difference.hpp. Add mean, variance, skewness, kurtosis, median, Gini coefficient, and median absolute deviation to tools/univariate_statistics.hpp. Add correlation coefficients and covariand absolute Gini coefficient, Hoyer sparsity, oracle SNR, and the M[sub 2]M[sub 4] SNR estimator to tools/signal_statistics.hpp. Add total variation, l0, l1, l2, and sup norms, as well as corresponding distance functions to tools/norms.hpp. for polynomials, support complex coefficients, add .prime() and .integrate() methods. Add quadratic_roots to tools/roots.hpp. Add support for complex-valued functions to Newton's method in roots.hpp. Add Catmull-Rom inted mp_invoke to mp_invoke_q Added mp_similar Added mp_set_union, mp_set_intersection, mp_set_difference Added mp_not_fn Added mp_transform_first, mp_transform_second, mp_transform_third Added mp_filter Addedp_valid_q Added mp_back, mp_pop_back Multi-index Containers: size_type and difference_type are now defined as the allocator's same-named types. This will not make any difference in the vast majority of cases, but allows for some degreevia user-defined allocator types (see issue #17 for motivation). For the moment being, this change is not documented in the reference section (i.e., it has semi-official status). Maintenance work. Multiprecision: Fix various conversioncheck for compatibility with Boost.Optional. Prevent instantiation of std::numeric_limits on any old type when checking for convertibility. See #98. Update variable precision code to account for arbitrary precision integers. See #103. lization archives. Fix bug in fixed precision iostream formatting in mpf_float and mpfr_float. See #113. Add more overloads for special functions which are better handled natively by MPFR. Fixed bug in generic exp implementation wh. Fixed generic conversion from float to integer to avoid undefined behaviour. See #110. PolyCollection: Improved handling of stateful allocators and allocator propagation traits, after an error reported by Billy O'Neal (PR#9). ug with an internal cache structure. Spirit: Removed use of deprecated boost/detail/iterator.hpp header. PR#432 X3 Integer parsers should now handle user defined types. PR#429 Note: The check_overflow trait defan std::numeric_limits<T>::is_bounded instead of boost::integer_traits<T>::is_integral. Removed sequence into plain parsing. Now it triggers a compile time error instead of silently parsing the the sequence and taking the last value as a resulte_rule instantiation with BOOST_SPIRIT_INSTANTIATE when: A rule has no attribute. PR#455 An actual attribute is not of type a rule was declared with. PR#456 #457 A huge thanks goes out to Xeverous for reporting Fixed unneded attribute synthesization and no-transformation attribute reference pass-through in rules. #444 PR#449 PR#452 Removed broken 1.0#INF parser. It was poorly documented and never worked. #415 PR#458 #8699 The undocumenoved due to bugs PR#449 and to simplify attribute transformation. PR#460 If you were using it to workaround bugs in attribute transformation - they should not be needed anymore as of this release. The integer value parser now respe10 value. PR#469 Fixed underflow check for a (Min % Base) == 0 corner case. PR#469 Fixed an output value on overflow of IgnoreOverflowDigits=true integer parser. PR#470 Container attribute elements were copyied, but notial handling of references in transform_attribute was removed. PR#480 V2 Macro name collisions and namespace conflicts with Boost.Endian were fixed. PR#349 PR#482 utree Fixed UB in tag getter due to left shi Fixed double-conversion (spirit::string -> std::string -> spirit::string). PR#462 Qi Added static asserts for rule skipper type problems. PR#427 The check_overflow trait default implementation now reoost::integer_traits<T>::is_integral PR#429 Integer parsers should now handle user defined types. PR#429 Note: The check_overflow trait default implementation now relies on std::numeric_limits<T>::is_bounded instead of boosl. Removed broken 1.0#INF parser. It was poorly documented and never worked. #415 PR#458 #8699 The undocumented make_attribute trait was merged into transform_attribute trait. PR#471 The pre_transform, post_tility functions were removed in favor of directly using pre/post/fail of the transform trait. PR#467 The integer value parser now respects std::numeric_limits<T>::digits10 value. PR#469 Fixed underflow check for a (Min % B Fixed an output value on overflow of IgnoreOverflowDigits=true integer parser. PR#470 Special handling of references in transform_attribute was removed. PR#480 Lex Fixed UB in default constructor of ken type. PR#420 Classic: Fixed position_iterator forming reference to local when the underlying iterator dereference operator returns a non-reference type. PR#422 #9737 Stacktrace: Build fix for iOS 32-bit ARM (many thanksng the fix PR#70) Fixed multiple typos, warnings and updated the docs. Test: Boost.test v3.10 see the Changes log for more details. Breaking changes: Boost.Test minimal.hpp is now showing a deprecation warning, omparison may fail tests that were silently not using the floating point comparison logic prior to this release, Internal API change to unit_test_log_formatter, see detailed change log, New feature: Floating point compariso non-floating point and arithmetic operands: expressions like BOOST_TEST(3.0001 == 3) now use floating point support of Boost.Test, Custom datasets are not required to declare the sample type field anymore, Extending template test riadic definition, Windows support for timed tests, Timed test on test-suites, Removed dependency to Boost.Timer, New macro BOOST_TEST_INFO_SCOPE for scoped context declaration, Improved BOOST_TE and pull requests: Trac tickets: #7397, #9434, #13106, #13418 GitHub Issues: #133, #138, #141, #157, #160, #174, #176, #177, #180, #181, #194, #196, #198, #199, #202, #203, #204 GitHub Pull Requests: PR#171, PR#172, PR PR#195, PR#195, PR#197, PR#205 TypeIndex: Support for the GHS C++ compiler added (many thanks to Brandon Castellano for providing the patch PR#28) Optimized string and type comparisons (many thanks to Andrey Semashev for providing the-win compilation (many thanks to Peter Dimov for providing the patch PR#25) CI hardening. TypeTraits: Added is_bounded_array and is_unbounded_array (Glen Fernandes). Added copy_reference and copy_cv_ref (Glen Fernandes). /clr option. Misc compiler compatibility fixes. Variant: Many cleanups and internal improvements, many thanks to Nikita Kniazev (PR#55, PR#56, PR#57) and Louis Dionne (PR#51) CI hardening. uBlas: Addition of tensorassoy PR#65) Addition of basic OpenCL support (many thanks to Fady Essam PR#59) Integration of basic benchmark suite (many thanks to Stefan Seefeld PR#57) CI integration and hardening Compilers Tested Boost's primary test compileang: 3.0, 4.0.1, 6.0.1 Clang, C++0x: 3.0 Clang, C++11: 3.0, 3.1, 3.2, 3.3, 3.4, 4.0.1, 6.0.1, 7.0.0, 8.0.0 Clang, C++14: 3.5.0, 3.6.0, 3.7.1, 3.8.0, 3.9.1, 4.0.0, 4.0.1, 5.0.2, 6.0.1, 7.0.0, 8.0.0 Clang, C++17: 5.0.2, 6.0.17, 4.5.3, 4.6.3, 5.4.0, 8.0.1 GCC, C++0x: 4.4.7 GCC, C++11: 4.7.3, 4.8.5, 4.9.4, 5.4.0, 6.4.0, 7.1.0, 8.0.1 GCC, C++14: 5.4.0, 5.5.0, 6.4.0, 7.1.0, 7.3.0, 8.0.1 GCC, C++17: 7.3.0, 8.0.1 Intel, C++14: 18.0 OS X: , 9.1.0, 10.0.0 Apple Clang, C++11: 9.0.0, 9.1.0, 10.0.0 Apple Clang, C++14: 9.0.0, 9.1.0, 10.0.0 Apple Clang, C++17: 9.1.0, 10.0.0 Apple Clang, C++1z: 9.0.0 Apple Clang, C++2a: 10.0.0 Windows: GCC: 3.4.4.0, 4.5.4 GCC, C++0x: 4.6.4 GCC, C++11: 4.7.3, 4.8.1, 4.9.3 GCC, C++14: 5.1.0, 5.2.0, 5.3.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0 GCC, C++17: 7.1.0, 7.2.0, 7.3.0 Visual C++: 7.1, 8.0, 9.0, 10.0, 11.0, 12.0, 14.0, 14.1 Fr Clang, C++11: 4.0.0 Clang, C++14: 4.0.0 Clang, C++1z: 4.0.0 Boost's additional test compilers include: Linux: Clang: 3.0, 3.8.1, 3.9.1, 4.0.1, 5.0.2, 6.0.1 Clang, C++0x: 3.0 Clang, C++11: 3.0, 3.1, 3..0.0, 8.0.0 Clang, C++14: 3.5.0, 3.6.0, 3.7.1, 3.8.0, 3.9.1, 4.0.0, 4.0.1, 5.0.2, 6.0.1, 7.0.0, 8.0.0 Clang, C++17: 5.0.2, 6.0.1, 7.0.0, 8.0.0 GCC: 4.4.7, 4.5.3, 4.6.3, 4.9.4, 5.4.0, 5.5.0, 8.0.1 GCC, C++0x: 4.4.7 G9.4, 5.4.0, 6.4.0, 7.1.0, 8.0.1 GCC, C++14: 5.4.0, 5.5.0, 6.3.0, 6.4.0, 7.1.0, 7.3.0, 8.0.1, 8.1.0 GCC, C++17: 7.3.0, 8.0.1 Intel, C++14: 18.0 OS X: Apple Clang: 9.0.0, 9.1.0, 10.0.0 Apple Clang, C++11: 9.0.0, 9ang, C++14: 9.0.0, 9.1.0, 10.0.0 Apple Clang, C++17: 9.1.0, 10.0.0 Apple Clang, C++1z: 9.0.0 Apple Clang, C++2a: 10.0.0 Windows: GCC: 3.4.5, 4.1.2, 4.2.4, 4.3.3, 4.4.0, 4.5.4 GCC, C++0x: 4.6.4 GCC, C++11 GCC, C++14: 5.1.0, 5.2.0, 5.3.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0 GCC, C++17: 7.1.0, 7.2.0, 7.3.0 Visual C++: 7.1, 8.0, 9.0, 10.0, 11.0, 12.0, 14.0, 14.1 FreeBSD: Clang: 4.0.0 Clang, C++11: 4.0.0 Clang, C++14: 4.0.0
Recursive revbump from textproc/icu
boost: updated to 1.69.0 New Libraries Safe Numerics: A library for guaranteed correct integer arithmetic for C++14 and later, from Robert Ramey. Updated Libraries Any: Fixed issue with visibility. Now boost::any variables constructed in one shared library with hidden visibility could be used and destroyed in other shared library with hidden visibility. Maintenance: dropped some dependencies on other Boost libraries, fixes for docs. Asio: Fixed a problem with the detection of std::future availability with libstdc++. Fixed compile error in regex overload of read_until. Fixed a timer heap corruption issue that can occur when moving a cancelled timer. Fixed detection of std::experimental::string_view and std::string_view with newer clang/libc++. Fixed MSVC version detection for availability of std::invoke_result. Fixed the buffer sequence traits to test the new requirements, if decltype is available. Fixed an MSVC issue when building with exceptions disabled. Added SSL context options for TLS v1.3. Added a compile-time test for TLS v1 support. Fixed the macro used to test for TLS v1.2 support. Prevented global objects from being created once per thread on Windows. Fixed a crash when using size(), max_size() or empty() on default-constructed resolver results. Changed to move the return value in basic_resolver_results::begin() to avoid copying. Enabled move support for the Intel Compiler. Fixed std::string_view detection issue when using clang-cl. Fixed the handler tracking operation name for io_context::executor_type::dispatch. Fixed a buffer overflow that could occur when parsing an address string with a 64-bit scope id. Added examples showing how to write composed operations. Added C++11 versions of the Timeouts, Timers, SOCKS4 and SSL examples. Fixed minor issues in documentation and examples. Assign: Add rvalue reference, perfect forwarding, and variadic template support Avoid conversion to container's allocator Beast: This version fixes some issues in the examples, and provides a new experimental socket which supports built-in timeouts on asynchronous operations. New CppCon 2018 websocket chat example and presentation video. For a complete list of changes, please view the official Release Notes. CircularBuffer: Use the empty base optimization for storing allocators that are empty and not final (Glen Fernandes). Concept Check: Removed dependency on mpl. Context: duplicate alias should be missing GCC alias the clang-win toolset (clang-cl.exe) uses masm from the underlying msvc remove useless lines in Jamfile.v2 add .file section for *_elf_gas.S files Core: Implemented boost::empty_value, for library authors to conveniently leverage the Empty Base Optimization to store objects of potentially empty types (Glen Fernandes). This facility is now used in Boost.Beast, Boost.CircularBuffer, Boost.MultiArray, and more. Implemented boost::quick_exit to provide the C++11 standard library facility std::quick_exit functionality (Peter Dimov). Reduced the number of statics in Lightweight Test, and employ lighter abort behavior for MSVC compilers upon failure to call boost::report_errors (Glen Fernandes). DLL: Resolved link issues with the smart library Maintenance: fixes for docs and tests. Dynamic Bitset: Performance improvements (over 2x in some cases). Added range-based set, reset, flip methods Fiber: unbuffered_channel push not return Remove UTF-8 BOM at begining of the file Fix boost-install use; should only be issued once Filesystem: Don't use readdir_r on Linux and Android since the readdir function is already thread-safe. Fixed crashes in boost::filesystem::copy due to undefined behavior in the implementation. Fixed undefined behavior in boost::filesystem::directory_iterator implementation. Fixed compilation errors when using directory iterators with BOOST_FOREACH. Removed workarounds for older PGI C++ compiler versions to fix compilation on the newer ones. Fixed MSVC warnings about narrowing conversions. Flyweight: Fixed some issues in GCC related to Boost.MPL placeholder expression handling. Maintenance fixes. Function: Removed dependencies on mpl, test Geometry: Karney's solution of direct geodesic problem for internal use Discrete Frechet and Hausdorff distance algorithms New run-time and upgraded compile-time SRS transformation interfaces (undocumented for now due to potential interface changes). Integer: boost/pending/integer_log2.hpp header is deprecated and will be removed in future releases. Use boost/integer/integer_log2.hpp instead. Iostreams: Remove call to nonexistent member seekpos() of std::fpos Iterator: Fixed compilation problems with ambiguous unqualified calls to advance and distance on iterators whose types involve types in the namespace boost. LexicalCast: Fixed sign-conversion warnings Maintenance: dropped some dependencies on other Boost libraries, fixed build system warnings. Log: General changes: Updated syslog sink backend to avoid using deprecated Boost.ASIO interfaces. Bug fixes: Fixed a possible incorrect estimation of the total size of rotated files in the target directory of a text file sink in some cases. See changelog for more details. Logic: Breaking change: Use explicit operator bool when available Math: Add LambertW functions. Update integration routines to support complex valued integrands and contour integrals. Added the derivative of the Barycentric rational approximation. Minor fixes to better support variable precision floating point types. Removed use of deprecated Boost.Endian in favour of Predef. Updated continued fraction and series evaluation code to support complex types. Prevent logic error leading to infinite loop in toms748_solve. Fix mean and standard_deviation for extreme_value_distribution. Improve heuristics used in newton_raphson_iterate. Fix result of erf(NaN). Big push to reduce GCC warnings. Refactor polynomial addition. Fix for vxWorks having a real function in the global namespace. Improve sinc approximations and add better tests. Fix typo in Student's T hypothesis testing documentation, Mp11: Implemented the mp_starts_with facility (Glen Fernandes). MultiArray: Improve C++11 allocator model support including: Support for C++11 minimal allocators, support for stateful allocators, using the allocator for construction and destruction of the value type, and using the empty base optimization for storing empty or stateless allocators (Glen Fernandes). Multi-index Containers: Introduced an alternative terse key specification syntax for C++17 compliant environments. Multiprecision: Big update to better support variable precision types so that the precision of the result is always the largest of all the arguments. Add support for allocators that are final in __cpp_int (Glen Fernandes). Removed use of deprecated Boost.Endian in favour of Predef. Add support for std::string_view. Fixed minor bug in constant initialization. Make assignment of non-finite value to cpp_int a runtime errors. Added typedefs for cpp_bin_float_oct and cpp_complex_oct. PolyCollection: Added Bost.PolyCollection-specific versions of algorithms std::for_each_n and std::sample. Pool: Replace boost::mutex use to avoid a dependency on Boost.Thread Preprocessor: Supports the new C++ standard conforming preprocessor in VC++ 14.1, which is currently enabled by using the /experimental:preprocessor switch, in Visual Studio 2017 15.8 on up. Rational: Add constexpr support Spirit.X3: Drop own FP routines in favor of boost::math Missing visibility mark on exception types to_utf8: Fixed wchar_t handling on Windows Spirit V2 Drop own FP routines in favor of boost::math Missing visibility mark on exception types Fixed transform_attribute ambiguity to_utf8: Fixed wchar_t handling on Windows Spirit.Classic: Missing visibility mark on exception types Stacktrace: libbacktrace usage was significantly improved. BOOST_STACKTRACE_USE_BACKTRACE or boost_stacktrace_backtrace users are encouraged to update: Memory consumprion dropped down. Stack capturing became faster by an order of magnitude. syminfo fallback enabled to provide information for visible symbols even without debug information Exact location of the backtrace.h header now can be specified via BOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE, to allow backtrace.h header usage on platforms and compilers where that header is unreachable otherwise (for example Ubuntu Xenial + Clang) Optimized stack capturing if max_depth is set Added to_string(const stacktrace& ) functions for fast conversion of stacktraces to std::string System: Boost.System is now header-only. A stub library is still built for compatibility, but linking to it is no longer necessary. Even more functions have been marked constexpr. The destructor of error_category is now protected and no longer virtual. This is a potentially breaking change, but its impact is expected to be limited. error_category now has a constructor that accepts a 64 bit identifier, enabling distinct category objects to compare equal. The constructors of error_category are now protected. A non-allocating, nonthrowing overload of message has been added. A virtual function failed has been added, allowing categories for which success is not synonymous with 0. The deprecated boost::system::throws object has been removed. boost::throws() is now deprecated and its use is discouraged. The constructor of system_error taking a single error_code argument is now explicit. system_error::code() now returns by value. Test: Boost.test v3.9 see the Changes log for more details. New feature: Official support of header-only variant of Boost.Test with multiple translation units. Now possible to manually add a test case by specifying its name, with BOOST_TEST_CASE_NAME Better support of boost::exception in the logs TypeIndex: Fix the regression and speed up parsing of the boost/type_traits.hpp header by 30% Utility: Added support for non-inheritable empty types to boost::compressed_pair by avoiding the empty base optimization for types which are declared as final (Glen Fernandes). Variant: Fixed issue with visibility. Now boost::bad_visit exception could cross the boundaries of shared library with hidden visibility and could be catched in other shared library with hidden visibility. YAP: Minor changes to support MSVC++ version 14.15 (Visual Studio 2017 version 15.8). Doc fixes.
revbump after updating textproc/icu
boost-libs: Expect fiber to work on Darmin 15 fiber used to fail on Darwin 15, but as of 15.5 with Apple LLVM >=8.0.0 (clang 8), it works. Because we expect pkgsrc users to be up to date with respect to minor versions of their (perhaps not upgradable from) major version, change the regexp to expect fiber on this platform. ok minskin@ on tech-pkg
boost: updated to 1.68.0 1.68.0: New Libraries YAP: An expression template library for C++14 and later, from Zach Laine. Updated Libraries Beast: This version fixes a missing executor work guard in all composed operations used in the implementation. Users who are experiencing crashes related to asynchronous completion handlers are encouraged to upgrade. For a complete list of changes, please view the official Release Notes. Context: 78: Linker error with context-impl=ucontext: multiple definition of boost::context::detail::current_rec Coroutine2: 14: crash while stack unwinding 18: some guidance on why to use coroutine2 20: failes to compile test in due to the error C2039 22: undefined behaviour documentation Fiber: 170: buffered_channel::try_push has incorrect documentation 172: WIN64: 'invalid conversion from 'HANDLE' to 'std::thread::native_handle_type' errors for builds using mingw-w64 175: throw exception "Operation not permitted" NUMA support moved to extra library (fiber-numa); enabled via property numa (numa=on) Fusion: Added a workaround for ambiguous call of fusion::deque constructor on GCC 4.4/c++0x Fixed a bug with C-style array Fixed a fusion::for_each signature to take functor by value This may break existing code with non-copyable (non-movable) functor, but the implementation wasn't correct for a long time; the documantation was correct from the first. So, please make sure your usage. Fixed unintentional MPL placeholder substituion bug on fusion::transform. Moved description, how to conform Fusion sequence as MPL sequence, to mpl section. Added notes regarding IO facility for adapted type. Geometry: Improvements 469 Horizontal grid shift (nadgrids) in SRS transformations (undocumented for now due to potential interface changes). 478 Box-Segment distance for spherical and geographic coordinate systems. 487 Missing combinations of geometries in distance for spherical and geographic cs 489 Additional direct geodesic problem formulas for internal use Solved issues 470 Assertion failure with short spherical and geographic segments. 471 Invalid envelope of spherical polygon 498 Unexpected results with expand() and make_inverse() for spherical and geographic CS Bugfixes 488 Handle non-true-references in closing_iterator and ever_circling_range_iterator 495 VxWorks 7 cross-compilation issue. GIL: The I/O extensions have been entirely rewritten. The library now requires a C++11-compliant compiler. Documentation has been reformatted and updated. Graph: Conditionally replace deprecated/removed C++98 std::bind1st by std::bind, std::auto_ptr by std::unique_ptr, and std::random_shuffle by std::shuffle. Fix compiler error with release builds on VS2015 Fix the Stanford GraphBase examples Fix friend declarations for iterator_core_access Add missing <boost/iterator.hpp> include Avoid an unused variable warning Fix some typos in documentation Fix some issues in tests and examples Lexical Cast: Fixes for clang-tidy warnings 12092 Log: Improved support for VxWorks. Save and restore ebx register on x86 PIE targets in the dump stream manipulator implementation. Math: Support for arbitrary precision complex valued quadrature and hence contour integration Improve performance of polynomial addition Math: Continue to improve numerical integration routines, and in particular add support for contour integrals. Improve accuracy of erfc function's rational approximations. Multi-index Containers: Containers of moveable but non-copyable elements can now be serialized (ticket 13478). Thanks to Sébastien Paris for the report. multi_index_container's default constructor is no longer explicit (ticket 13518). Multiprecision: Support for multiprecision complex numbers Multiprecision: Support added for complex multiprecision numbers. Changed conversion to unsigned integer types to be truncating to match standard defined behaviour. Correct bug in MPFR string formatting. Fix undefined behaviour in cpp_dec_float conversion from long long. Add support for Eigen interoperability. float128.hpp: Fix Intel on Windows build. Fix type used in temporaries when expanding expression templates containing mixed expressions. Fix infinite loop in gmp_float to fixed-point string conversion. Update the expression templates to issue static_asserts with better error messages when you try and do something unsupported. Fix bug in cpp_int where incrementing to zero doesn't set the sign correctly. Remove erroneous use of std::move, and rely on NVRO instead. Fix up support for changes to MPIR-3.0. Fix various conversion errors in cpp_bin_float when the exponent type is a long long, or else we're converting to an integer that is wider than we are. Fix compatibility issue with GCC-8 caused by the introduction of std::byte. Optional: Added member function has_value() for compatibility with std::optional (issue 52). Added member function map() for transforming optional<T> into optional<U> using a function of type T -> U. Added member function flat_map() for transforming optional<T> into optional<U> using a function of type T -> optonal<U>. Predef: Add support for __ARM_ARCH macro. Add detection for PTX architecture. Add nvcc compiler detection. Add support for detecting CUDA. Remove reference to obsolete BOOST_ARCH_AMD64. Program Options: Support for multiple long names for an option, thanks to Eyal Rozenberg Python: Bug fixes to correct autolink support (Windows) Rational: Fixed undefined behavior in normalize() System: Add constexpr to error_code and error_condition members under C++14 and above Signals: Removal Notice: Boost.Signals will be removed in the next release. Boost.Signals was deprecated in version 1.54.0. Transition to Boost.Signals2 now to avoid disruption. Stacktrace: Fixed compilation on Solaris and other platforms that do qualify address as const in dladdr function (github 54). Dropped dependency on Boost.LexicalCast. Test: Boost.test v3.8 see the Changes log for more details. Breaking changes The master_test_suite_t object is no more copyable New feature: Dataset test case can now use command line parameters TypeIndex: Dropped dependency on Boost.MPL. Uuid: Breaking change: sha1 detail namespace header redirection for backwards compatibility was removed Added support for std::hash Added support for move semantics on random generators Properly handle EINTR when acquiring entropy Use getrandom(2) instead of getentropy(3) on linux
Recursive revbump from textproc/icu-62.1
devel/boost-libs: fiber doesn't build on Darwin-1[0-5].* fiber requires thread_local, and clang in Xcode 7 or earlier doesn't allow it.
devel/boost-libs: Make fiber compiles on FreeBSD https://github.com/boostorg/fiber/commit/225b0d75
Remove unsupported configure option, fixes PR pkg/53235.
In NetBSD and clang case, Boost fiber will be built. Reported by adam@ in https://mail-index.netbsd.org/pkgsrc-changes/2018/04/30/msg174814.html
fiber does not support NetBSD. Disable fiber for NetBSD to fix packaging
boost: updated to 1.67.0 Version 1.67.0: New Libraries: - Contract: Contract programming for C++. - HOF: Higher-order functions for C++. Updated Libraries: - Asio: Added missing const qualifier to basic_socket_acceptor::get_option. Worked around a parsing error that occurs with some versions of gcc. Fixed broken code samples in tutorial. Added new experimental features. (Note that "experimental" features may be changed without notice in subsequent releases.) Added experimental::detached completion token. Added experimental::redirect_error completion token. Added experimental::co_spawn facility for integration with the coroutines technical specification. Updated timeout examples to use latest features. Used asio::steady_timer rather than asio::deadline_timer. Used asio::dynamic_buffer rather than asio::streambuf. Used timed asio::io_context::run_for() function for blocking clients. Added example showing a custom completion token for blocking with timeouts. Fixed unit tests to compile when BOOST_ASIO_NO_DEPRECATED is defined. Changed socket iostreams to use chrono by default, to fix compatibility with the Networking TS. Define BOOST_ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM to enable the old Boost.Date_Time interface in basic_socket_streambuf and basic_socket_iostream. Updated examples to use chrono rather than Boost.Date_Time. Fixed an incorrect member function detector in the is_dynamic_buffer trait. Fixed an async_result incompatibility with deprecated handler_type. Added a missing move optimisation in the SSL stream implementation. Fixed incorrect basic_resolver_results::value_type typedef. Fixed a compile error with some OpenSSL versions when SSL_OP_NO_COMPRESSION is defined. Changed add_certificate_authority to process multiple certificates in a bundle. Eliminated deprecation warning with MSVC by using std::invoke_result rather than std::result_of. Changed to use std::string_view for C++17 or later, and std::experimental::string_view for C++14. Define the preprocessor macro BOOST_ASIO_DISABLE_STD_STRING_VIEW to force the use of std::experimental::string_view (assuming it is available) when compiling in C++17 mode. Ensured DynamicBuffer template arguments are decayed before using in enable_if tests. Changed documentation to distinguish legacy completion handlers (which are still required to be CopyConstructible) from new MoveConstructible handlers. Suppressed a discarded return value warning in the buffer debugging support. Fixed basic_yield_context to work with completion signatures containing reference parameters. Ensured that stackful coroutines launched using spawn() correctly store decayed copies of their function and handler arguments. Fixed some compatibility issues with Android. Added cross-compilation support to Jamfiles. Fixed some minor portability issues in examples. - Atomic: Breaking change: Changed the result of the (op)_and_test operations added in Boost 1.66 to the opposite - the functions now return true if the operation result is non-zero. This is consistent with other test methods in Boost.Atomic and the C++ standard library. Users can define BOOST_ATOMIC_DETAIL_HIGHLIGHT_OP_AND_TEST when compiling their code to emit warnings on every use of the changed functions. This way users can locate the code that needs to be updated. Update for C++2a. On C++11 compilers that support scoped enums, the memory_order enumeration is now scoped and contains constants with shorter names like acquire, release or seq_cst (i.e. users can use memory_order::acquire instead of memory_order_acquire). The old constants are also provided for backward compatibility. (P0439R0) Update for C++2a. Added experimental support for atomic operations on floating point types. In addition to general operations, add, sub, negate operations and their fetch_(op) and opaque_(op) versions are supported. Lock-free property can be tested with the new macros BOOST_ATOMIC_FLOAT/DOUBLE/LONG_DOUBLE_LOCK_FREE. The support for floating point types is optional and can be disabled by defining BOOST_ATOMIC_NO_FLOATING_POINT. (P0020R6) Added new experimental operations: negate_and_test and complement_and_test which perform negation or bitwise complement and return true if the result is not zero. add, sub, negate, bitwise_and, bitwise_or, bitwise_xor, bitwise_complement operations which perform the operation and return its result. For generic atomic<T> specialization, the default constructor is now trivial if T's default constructor is. The internal implementation of atomic<T> has been updated to avoid undefined behavior that stems from signed integer overflows. As required by the C++ standard, the library uses two's complement representation of signed integers internally and accroding rules of overflow. Currently, the library requires the native signed integer types to also use two's complement representation (but no defined overflow semantics). Improved Clang support. In particular, fixed DCAS not being lock-free and fixed possible incorrect code generated on 32-bit x86. Improved MinGW support. For gcc versions up to 4.6, fixed compilation of DCAS on x86. In x86 PIE code, asm blocks now preserve ebx value. - Beast: This version fixes significant defects in websocket::stream which can lead to asserts or undefined behavior. Users are encouraged to update to the latest Boost release. For a complete list of changes, please view the official Release Notes. - ContainerHash: Extracted from the functional module to break a dependency cycle. Moved headers to new location to reflect name change, the old include paths will still work. Added support for std::string_view, std::error_code, std::error_condition, std::optional, std::variant, std::monostate where available. Added explicit support for vector<bool>, so that it will work with libc++. More detail in the library change log. - Context: fix i386/macho routines to correctly return transfer_t in EAX/EDX __sanitizer_finish_switch_fiber should be called directly after context switch Clang on Windows : error: No best alternative for libs/context/build/asm_sources fixing C2492 for execution_context (v1) known bug: including all.hpp + <context-impl>ucontext/winfib causes error 'forced_unwind: is not a member of boost::context::detail' More info https://www.boost.org/users/history/version_1_67_0.html
revbump after icu update
boost: updated to 1.66.0 1.66.0: New Libraries Beast: Portable HTTP, WebSocket, and network operations using only C++11 and Boost.Asio, from Vinnie Falco. CallableTraits: A spiritual successor to Boost.FunctionTypes, Boost.CallableTraits is a header-only C++11 library for the compile-time inspection and manipulation of all 'callable' types. Additional support for C++17 features, from Barrett Adair. Mp11: A C++11 metaprogramming library, from Peter Dimov.
devel/boost-libs: Enable stacktrace_backtrace on Debian only This fixes the build failure on non-Debin Linux systems without libbacktrace. A general solution will be needed when the freeze is over.
devel/boost-libs: Add missing files to PLIST.Linux Bump PKGREVISION.
Revbump after textproc/icu update
revbump for requiring ICU 59.x
Version 1.65.0 New Libraries: PolyCollection, Stacktrace. Updated Libraries: Asio, Context, Config, Core, Coroutine2, DLL, Fiber, Fusion, Geometry, Hash, Log, Phoenix, Predef, Program Options, Python, Smart Pointers, Test, TypeIndex, Unordered, Utility, Variant.
Bump PKGREVISION from enabling log1p and expm1 under NetBSD
boost-libs: unconditionally disable fiber It doesn't build even on netbsd+gcc5.4 (it did in the previous version) Also helps SmartOS because we're currently not matching SmartOS with this logic block, although matching GCC versions would do the trick. Drop comment which isn't specific to fiber
Changes 1.64.0: New Libraries Process library by Klemens D. Morgenstern, that provides cross platorm ways to allows you to: * create child processes * setup streams for child processes * communicate with child processes through streams (synchronously or asynchronously) * wait for processes to exit (synchronously or asynchronously) * terminate processes
Revbump after icu update
Pullup ticket #5264 - requested by sevan devel/boost-libs: build fix Revisions pulled up: - devel/boost-libs/Makefile 1.52 --- Module Name: pkgsrc Committed By: jperkin Date: Mon Apr 10 11:43:13 UTC 2017 Modified Files: pkgsrc/devel/boost-libs: Makefile Log Message: Long double math libraries now build on older Darwin too.
Long double math libraries now build on older Darwin too.
Fix packaging. Fiber module is not built for NetBSD-current anymore.
Changes 1.63.0: Atomic: * Added the static constant atomic<T>::is_always_lock_free for conformance with C++17. The constant indicates that the given specialization always provides lock-free implementation of atomic operations. * Improved support of Oracle Studio on x86 targets. Container: * Fixed bugs Context: * 11687 Xcode (Apple clang) and thread_local * 12114 context does not preserve fpu context on ios arm64 devices (fixed for other architecturs too) * 12411 fpu registers not preserved with O2 optimizations in Visual Studio (fixed for other architecturs too) * 12551 building boost on arm64 causes error: unknown directive * reduced signatur for ontop-functions * unit-test for private fcontext-API * performance-test for ucontext and fcontext fixed Fiber: * unbounded_channel and bounded_channel marked as deprecated * new classes buffered_channel and unbuffered_channel * performance improved Fusion: * Fixed fusion::vector buggy constructors (Thanks to Lee Clagett). * BOOST_FUSION_ADAPT* and BOOST_FUSION_DEFINE* now allow empty structures. (6592) * BOOST_FUSION_DEFINE* allows move constructor and assignment. (10099) * Adaptor for std::array (Thanks to Mateusz Łoskot). (8241) * Fixed returning temporary variable warnings on MSVC. Geometry: * Intersection: take care that output is valid (work in progres, not yet finished - but more is valid) * 12289 Avoid warning/compilation error for std::cout * 12412 Invalid result of covered_by() with geographic Points and Boxes * 12413 rtree::remove() not working properly with geographic Points Hash: * Fixed some warnings. Interprocess: * Fixed bugs Intrusive: * Fixed bugs Lexical Cast: * Fixed issue found by -fsanitize=undefined 21 Log: * Removed the previously deprecated type_info_wrapper. * Added a way to access the current file name from the text file sink backend. The file name can be obtained with the get_current_file_name method. * Bug fixes Metaparse: * Improved the implementation of BOOST_METAPARSE_STRING Move: * Improved experimental adaptive sort algorithm performance * Activate BOOST_MOVE_FORCEINLINE Optional: * Added two new in-place constructors. They work similarly to emplace() functions: they initialize the contained value by perfect-forwarding the obtained arguments. One constructor always initializes the contained value, the other based on a boolean condition. * Syntax o = {} now correctly un-initializes an optional, just like in std::optional. * Fixed optional<optional<T>&> initialization. (12203) * Optional constructors are sfinae-friendly. This fixes interaction with std::tuple. (12563) Phoenix: * Most of modules now support C++11 variadic templates. * Fixed type deduction failure with result type. * Suppress unused warnings. * Fixed too few arguments error on binary math functions. * Added workarounds for older compiler. Python: * Added (basic) support for C++11 (std::shared_ptr, std::unique_ptr) * Incorporated an extension API to wrap NumPy * Removed obsolete bits and pieces Test: * Boost.test v3.4 see the Change log section for more details. * New feature: per_element and lexicographic modifiers of BOOST_TEST can also be applied to string comparison * Breaking change: colons that appear in test case names are replaced with underscores * Bug fixes TypeIndex: * Added runtime_cast to the library as an emulation of dynamic_cast. Thanks to Chris Glover for the implementation. See runtime_cast reference for more info. * Internals of the CTTI were made more platform independant, due to change of the std::size_t type to unsigned int. Units: * Fix inspection warnings * updated physico-chemical constants to CODATA 2014 values * define biot correctly as 10 Ampere Unordered: * Fix an exception safety issue in assignment. * Use std::allocator_traits where available, and support modern style rebind (12459). * Add some allocator aware constructors. * Use the hint iterator in emplace_hint. * Fixed some warnings.
also disable fiber when using clang on NetBSD due to lack of thread_local
Recursive revbump from textproc/icu 58.1
Disable the context library (and all libraries requiring it) for alpha, m68k, and sparc64.
boost-libs: don't include fiber PLIST on NetBSD 6 as well As an alternative, it's possible to require a higher GCC version, note that it's necessary to require a higher GCC on other boost-* packages (probably boost-headers). fix build on netbsd 6.1.5
Handle lack of thread_local support in older Darwin clang.
devel/boost-libs: fix build on fbsd Ensure proper PLIST contents after disabling long double math functions. Ok@ wiz
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.
Recursive revbump from textproc/icu 57.1
Make bjam.mk aware of gcc-5.x Bump PKGREVISION for boost-{headers,libs}.
Fix PLIST.long_double_math logic.
Restore long double math functions for sufficiently new Darwin.
Disable long double math functions for NetBSD and FreeBSD. Bump PKGREVISION for devel/boost-headers and devel/boost-libs. This fixes databases/mongodb build.
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...
Enable PLIST.long_double_math on OS X El Capitain and newer
Enable long double math on OS X Mavericks.
Find bzip2 and zlib correctly.
Long double math is available on OS X 10.10 Yosemite
Long double math functions are not available on Darwin. See boost/math/tools/config.hpp:53
Work around "fatal error: had to relocate PCH" by setting pch=off for NetBSD/earm if gcc is being used. Fixes build for me on NetBSD/earmv7hf 7.0_BETA with gcc.
Chamges 1.57.0: Updated Libraries Any: RTTI is not required any more (TypeIndex library is used for RTTI emulation) Fixed 8958 Asio: Fixed the kqueue reactor so that it works on FreeBSD. Fixed an issue in the kqueue reactor which resulted in spinning when using serial ports on Mac OS. Fixed kqueue reactor support for read-only file descriptors. Fixed a compile error when using the /dev/poll reactor. Changed the Windows backend to use WSASocketW, as WSASocketA has been deprecated. Fixed some warnings reported by Visual C++ 2013. Fixed integer type used in the WinRT version of the byte-order conversion functions. Changed documentation to indicate that use_future and spawn() are not made available when including the asio.hpp convenience header. Explicitly marked asio::strand as deprecated. Use asio::io_service::strand instead. Circular Buffer: Fixed some warnings and move_if_noexcept from Boost.Move is used Config: BOOST_HAS_PRAGMA_DETECT_MISMATCH macro was added Container: Added support for initializer_list. Fixed double destruction bugs in vector and backward expansion capable allocators. Coroutine: optionally register stacks with valgrind 10386 MSVC link error in asymmetric_coroutine.hpp: symbol already defined 10536 call to 'begin(...pull_coroutine< R > & c)' is ambiguous Flyweight: Added serialization support via Boost Serialization. flyweight default constructor was made explicit in Boost 1.56, which introduces a regression in some initialization scenarios. The former non-explicit default constructor has been restored More...
Bump PKGREVISION for the previous commit.
Pullup ticket #4440 - requested by asau devel/boost-libs: build fix Revisions pulled up: - devel/boost-libs/Makefile 1.28 --- Module Name: pkgsrc Committed By: asau Date: Tue Jul 1 22:16:43 UTC 2014 Modified Files: pkgsrc/devel/boost-libs: Makefile Log Message: Work around PR toolchain/48878: make it build on NetBSD/i386 with GCC 4.8.
Work around PR toolchain/48878: make it build on NetBSD/i386 with GCC 4.8.
Fix build of boost-libs under OpenBSD/amd64 5.5 * Add iconv dependency (fix build) * Add the patches for OpenBSD * gcc46 is required under OpenBSD 5.5 at least
The Boost log library has aggressive compiler requirements, disable it on Darwin with GCC as it does not have new enough STL. This will most likely need extending to other platforms/compilers.
Allow building on architectures that are not supported by the context library.
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Move the sparc64/gcc4 hack from Makefile to hacks.mk, where it belongs. Unlimit the stack size, so that we can compile on NetBSD/sparc64.
Changes 1.50:0 New Libraries * Algorithm: A collection of useful generic algorithms, from Marshall Clow. This includes several different searching algorithms, as well as most of the new algorithms from the C++11 standard library * Functional/OverloadedFunction: Overload different functions into a single function object, from Lorenzo Caminiti. * LocalFunction: Program functions locally, within other functions, directly within the scope where they are needed, from Lorenzo Caminiti. * Utility/IdentityType: Wrap types within round parenthesis so they can always be passed as macro parameters, from Lorenzo Caminiti. More http://www.boost.org/users/history/version_1_50_0.html
Work around gcc/sparc64/-O3 bug by using buildlink to rename "-O3" to "-O1".
Update boost to 1.49.0 Changes: New Libraries * Heap: Priority queue data structures, from Tim Blechmann. Details: http://www.boost.org/users/history/version_1_49_0.html
Turn off pre-compiled headers on NetBSD/sparc64. This stops cc1plus spinning while using 100% system time.
devel/boost-libs: Add libboost_locale.* to PLIST.DragonFly Bump PKGREVISION
Add libboost_locale.* to PLIST.Linux. Bump PKGREVISION.
Changes 1.45.0: * Fixed a problem on kqueue-based platforms where a deadline_timer may never fire if the io_service is running in a background thread * Fixed a const-correctness issue that prevented valid uses of has_service<> from compiling * Fixed MinGW cross-compilation * Removed dependency on deprecated Boost.System functions * Ensured close()/closesocket() failures are correctly propagated * Added a check for errors returned by InitializeCriticalSectionAndSpinCount * Added support for hardware flow control on QNX * Always use pselect() on HP-UX, if it is available. * Ensured handler arguments are passed as lvalues * Fixed Windows build when thread support is disabled * Fixed a Windows-specific problem where deadline_timer objects with expiry times set more than 5 minutes in the future may never expire * Fixed the resolver backend on BSD platforms so that an empty service name resolves to port number 0, as per the documentation * Fixed read operations so that they do not accept buffer sequences of type const_buffers_1 * Redefined Protocol and id to avoid clashing with Objective-C++ keywords * Fixed a vector reallocation performance issue that can occur when there are many active deadline_timer objects * Fixed the kqueue backend so that it compiles on NetBSD * Fixed the socket io_control() implementation on 64-bit Mac OS X and BSD platforms * Fixed a Windows-specific problem where failures from accept() are incorrectly treated as successes * Deprecated the separate compilation header <boost/asio/impl/src.cpp> in favour of <boost/asio/impl/src.hpp>
Fix buildling serialization libs
Changes 1.14.0: * New Libraries Property Tree: A tree data structure especially suited to storing configuration data, from Marcin Kalicinski and Sebastian Redl. * Updated Libraries * Build System A bug preventing "fat" 32-bit + 64-bit builds on OSX has been fixed.
PLIST fix; rev.bump
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.
fix PKGREVISION
Apply patches to fix CVE-2008-0171 in boost-headers and boost-libs. This is a fix for a possible DoS when using Boost.Regex in an application. Note that the fix goes into a header, so all applications that use Boost.Regex may be affected by the problem and need to be rebuilt.
Added support for installation to DESTDIR.
Update boost to 1.34.1. This is based on the patches provided by Brook Milligan in PR pkg/36558. Committing it right after the freeze so that we have enough time to resolve the problems that this will surely cause. New Libraries * Foreach Library: BOOST_FOREACH macro for easily iterating over the elements of a sequence, from Eric Niebler. * Statechart Library: Arbitrarily complex finite state machines can be implemented in easily readable and maintainable C++ code, from Andreas Huber. * TR1 Library: An implementation of the C++ Technical Report on Standard Library Extensions, from John Maddock. This library does not itself implement the TR1 components, rather it's a thin wrapper that will include your standard library's TR1 implementation (if it has one), otherwise it will include the Boost Library equivalents, and import them into namespace std::tr1. Highlights include: Reference Wrappers, Smart Pointers, result_of, Function Object Binders, Polymorphic function wrappers, Type Traits, Random Number Generators and Distributions, Tuples, Fixed Size Array, Hash Function Objects, Regular Expressions and Complex Number Additional Algorithms. * Typeof Library: Typeof operator emulation, from Arkadiy Vertleyb and Peder Holt. * Xpressive Library: Regular expressions that can be written as strings or as expression templates, and that can refer to each other and themselves recursively with the power of context-free grammars, from Eric Niebler. Updated Libraries * Assign Library: o Support for ptr_map<key,T> via the new function ptr_map_insert() o Support for initialization of Pointer Containers when the containers hold pointers to an abstract base class. * Date_time library: o Support for new US/Canada timezone rules and other bug fixes. See Change History for details. * Filesystem Library: Major upgrade in preparation for submission to the C++ Standards Committee for TR2. Changes include: o Internationalization, provided by class templates basic_path, basic_filesystem_error, basic_directory_iterator and basic_directory_entry. o Simplification of the path interface by eliminating special constructors to identify native formats. o Rationalization of predicate function design, including the addition of several new functions. o Clearer specification by reference to POSIX, the ISO/IEEE Single Unix Standard, with provisions for Windows and other operating systems. o Preservation of existing user code whenever possible. o More efficient directory iteration. o Addition of a recursive directory iterator. * Function Library: Boost.Function now implements a small buffer optimization, which can drastically improve the performance when copying or constructing Boost.Function objects storing small function objects. For instance, bind(&X:foo, &x, _1, _2) requires no heap allocation when placed into a Boost.Function object. * Functional/Hash Library o Use declarations for standard classes, so that the library doesn't need to include all of their headers o Deprecated the <boost/functional/hash/*.hpp> headers. o Add support for the BOOST_HASH_NO_EXTENSIONS macro, which disables the extensions to TR1 o Minor improvements to the hash functions for floating point numbers. * Graph Library: o edmonds_maximum_cardinality_matching, from Aaron Windsor. o lengauer_tarjan_dominator_tree, from JongSoo Park. o compressed_sparse_row_graph, from Jeremiah Willcock and Douglas Gregor of Indiana University. o sorted_erdos_renyi_iterator, from Jeremiah Willcock of Indiana University. o biconnected_components now supports a visitor and named parameters, from Janusz Piwowarski. o adjacency_matrix now models the Bidirectional Graph concept. o dijkstra_shortest_paths now calls vis.initialize_vertex for each vertex during initialization. o Note: the name of the compiled library for the GraphViz reader has changed to boost_graph (from bgl-viz) to match Boost conventions. o See the complete revision history for more information. * MultiArray Library: Boost.MultiArray now by default provides range-checking for operator[]. Range checking can be disabled by defining the macro BOOST_DISABLE_ASSERTS before including multi_array.hpp. A bug in multi_array::resize() related to storage orders was fixed. * Multi-index Containers Library: o New random access indices. o Non key-based indices feature new rearrange facilities. o This version also includes a number of optimizations and usage improvements. For a complete list of changes, see the library release notes. * Optional Library: o boost::none_t and boost::none now added to Optional's documentation o Relational operators now directly support arguments of type 'T' and 'none_t' o operator->() now also works with reference types. o Helper functions make_optional(val), make_optional(cond,val) and get_optional_value_or(opt,alternative_value) added. o Constructor taking a boolean condition (as well as a value) added. o Member function get_value_or(alternative_value) added. o Incompatbility bug with mpl::apply<> fixed. o Converting assignment bug with uninitialized lvalues fixed. * Parameter Library: o Every ArgumentPack is now a valid MPL Forward Sequence. o Support for unnamed arguments (those whose keyword is deduced from their types) is added. o Support for named and unnamed template arguments is added. o New overload generation macros solve the forwarding problem directly. o See also the Python library changes, below. * Pointer Container Library: o Support for serialization via Boost.Serialization. o Exceptions can be disabled by defining the macro BOOST_PTR_CONTAINER_NO_EXCEPTIONS before including any header. This macro is defined by default if BOOST_NO_EXCEPTIONS is defined. o Additional std::auto_ptr<T> overloads added s.t. one can also pass std::auto_ptr<T> instead of only T* arguments to member functions. o transfer() now has weaker requirements s.t. one can transfer objects from ptr_container<Derived> to ptr_container<Base>, * Python Library: o Boost.Python now automatically appends C++ signatures to docstrings. The new docstring_options.hpp header is available to control the content of docstrings. o stl_input_iterator, for turning a Python iterable object into an STL input iterator, from Eric Niebler. o Support for void* conversions is added. o Integrated support for wrapping C++ functions built with the parameter library; keyword names are automatically known to docsstrings. o Enhancements to the API for better embedding support (boost::python::import(), boost::python::exec() and boost::python::exec_file()). * Signals Library: More improvements to signal invocation performance from Robert Zeh. * Smart Pointers Library: o Allocator support as proposed in N1851 (162 Kb PDF). o pointer_cast and pointer_to_other utilities to allow pointer-independent code, from Ion Gaztanaga. * String Algorithm Library: o lexicographical_compare o join o New comparison predicates is_less, is_not_greater. o Negative indexes support (like Perl) in various algorihtms (*_head/tail, *_nth). * Wave Library: o Wave now correctly recognizes pp-number tokens as mandated by the C++ Standard, which are converted to C++ tokens right before they are returned from the library. o Several new preprocessing hooks have been added. For a complete description please refer to the related documentation page: The Context Policy. o Shared library (dll) support has been added for the generated Wave libraries. o The overall error handling has been improved. It is now possible to recover and continue after an error or a warning was issued. o Support for optional comment and/or full whitespace preservation in the generated output stream has been added. o The Wave library now performs automatic include guard detection to avoid accessing header files more than once, if appropriate. o Full interactive mode has been added to the Wave tool. Now the Wave tool can be used just like Python or Perl for instance to interactively try out your BOOST_PP macros. Additionally it is now possible to load and save the current state of an interactive session (macro tables et.al.). o The overall performance has been improved by upto 40-60%, depending on the concrete files to process. o Support for new pragmas has been added allowing to control certain library features from inside the preprocessed sources (partial output redirection, control of generated whitespace and #line directives). o Optional support for #pragma message "..." has been added. o This version also includes a number of bug fixes and usage improvements. For a complete list of changes, see the libraries change log.
Fix path to bjam.mk: it now lives inside boost-jam, not boost-build.
boost-libs uses libbz2.so and libz.so (see lib/libboost_iostreams-mt.so), so include their respective buildlink3 files properly.
Update boost* to 1.33.1: Any Library: Cast to reference types introduced in 1.33.0 is now documented on any_cast documentation page. Config Library: Don't undef BOOST_LIB_TOOLSET after use. Boost.Python: * The build now assumes Python 2.4 by default, rather than 2.2 * Support Python that's built without Unicode support * Support for wrapping classes with overloaded address-of (&) operators Smart Pointer Library: Fixed problems under Metrowerks CodeWarrior on PowerPC (Mac OS X) with inlining on, GNU GCC on PowerPC 64. Regex Library: Fixed the supplied makefiles, and other small compiler specific changes. Refer to the regex history page for more information on these and other small changes. Iostreams Library: Improved the interface for accessing a chain's components, added is_open members to the file and file descriptor devices, fixed memory-mapped files on Windows, and made minor changes to the documentation. Functional/Hash Library: Fixed the points example. Multi-index Containers Library: Fixed a problem with multithreaded code, and other minor changes. Refer to the library release notes for further details. Graph Library: * Fixed a problem with the relaxed heap on x86 Linux (fixes bug in dijkstra_shortest_paths). * Fixed problems with cuthill_mckee_ordering and king_ordering producing no results. * Added color_map parameter to dijkstra_shortest_paths. Signals Library: Fixed problems with the use of Signals across shared library boundaries. Thread library: read_write_mutex has been removed due to problems with deadlocks. Wave library (V1.2.1) Fixed a couple of problems, refer to the change log for further details.
Fix build of boost on DragonFly. (a) bjam should be consistent with the rest of the world, the OS is called DragonFly, not DragonFlyBSD. It might be _annoying_, but it is a fact of live and no spelling fault can avoid it. (b) disable the compiler thread support checks, they don't really work and are not needed anyway. (c) DragonFly has wchar and ctype functions, so use them. Bump revisions of boost-build (bjam), boost-headers (well, they changed) and boost-libs.
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.
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.