head 1.18; access; symbols pkgsrc-2023Q4:1.18.0.8 pkgsrc-2023Q4-base:1.18 pkgsrc-2023Q3:1.18.0.6 pkgsrc-2023Q3-base:1.18 pkgsrc-2023Q2:1.18.0.4 pkgsrc-2023Q2-base:1.18 pkgsrc-2023Q1:1.18.0.2 pkgsrc-2023Q1-base:1.18 pkgsrc-2022Q4:1.17.0.8 pkgsrc-2022Q4-base:1.17 pkgsrc-2022Q3:1.17.0.6 pkgsrc-2022Q3-base:1.17 pkgsrc-2022Q2:1.17.0.4 pkgsrc-2022Q2-base:1.17 pkgsrc-2022Q1:1.17.0.2 pkgsrc-2022Q1-base:1.17 pkgsrc-2021Q4:1.16.0.2 pkgsrc-2021Q4-base:1.16 pkgsrc-2021Q3:1.15.0.4 pkgsrc-2021Q3-base:1.15 pkgsrc-2021Q2:1.15.0.2 pkgsrc-2021Q2-base:1.15 pkgsrc-2021Q1:1.14.0.2 pkgsrc-2021Q1-base:1.14 pkgsrc-2020Q4:1.13.0.8 pkgsrc-2020Q4-base:1.13 pkgsrc-2020Q3:1.13.0.6 pkgsrc-2020Q3-base:1.13 pkgsrc-2020Q2:1.13.0.4 pkgsrc-2020Q2-base:1.13 pkgsrc-2020Q1:1.13.0.2 pkgsrc-2020Q1-base:1.13 pkgsrc-2019Q4:1.12.0.6 pkgsrc-2019Q4-base:1.12 pkgsrc-2019Q3:1.12.0.2 pkgsrc-2019Q3-base:1.12 pkgsrc-2019Q2:1.10.0.42 pkgsrc-2019Q2-base:1.10 pkgsrc-2019Q1:1.10.0.40 pkgsrc-2019Q1-base:1.10 pkgsrc-2018Q4:1.10.0.38 pkgsrc-2018Q4-base:1.10 pkgsrc-2018Q3:1.10.0.36 pkgsrc-2018Q3-base:1.10 pkgsrc-2018Q2:1.10.0.34 pkgsrc-2018Q2-base:1.10 pkgsrc-2018Q1:1.10.0.32 pkgsrc-2018Q1-base:1.10 pkgsrc-2017Q4:1.10.0.30 pkgsrc-2017Q4-base:1.10 pkgsrc-2017Q3:1.10.0.28 pkgsrc-2017Q3-base:1.10 pkgsrc-2017Q2:1.10.0.24 pkgsrc-2017Q2-base:1.10 pkgsrc-2017Q1:1.10.0.22 pkgsrc-2017Q1-base:1.10 pkgsrc-2016Q4:1.10.0.20 pkgsrc-2016Q4-base:1.10 pkgsrc-2016Q3:1.10.0.18 pkgsrc-2016Q3-base:1.10 pkgsrc-2016Q2:1.10.0.16 pkgsrc-2016Q2-base:1.10 pkgsrc-2016Q1:1.10.0.14 pkgsrc-2016Q1-base:1.10 pkgsrc-2015Q4:1.10.0.12 pkgsrc-2015Q4-base:1.10 pkgsrc-2015Q3:1.10.0.10 pkgsrc-2015Q3-base:1.10 pkgsrc-2015Q2:1.10.0.8 pkgsrc-2015Q2-base:1.10 pkgsrc-2015Q1:1.10.0.6 pkgsrc-2015Q1-base:1.10 pkgsrc-2014Q4:1.10.0.4 pkgsrc-2014Q4-base:1.10 pkgsrc-2014Q3:1.10.0.2 pkgsrc-2014Q3-base:1.10 pkgsrc-2014Q2:1.9.0.12 pkgsrc-2014Q2-base:1.9 pkgsrc-2014Q1:1.9.0.10 pkgsrc-2014Q1-base:1.9 pkgsrc-2013Q4:1.9.0.8 pkgsrc-2013Q4-base:1.9 pkgsrc-2013Q3:1.9.0.6 pkgsrc-2013Q3-base:1.9 pkgsrc-2013Q2:1.9.0.4 pkgsrc-2013Q2-base:1.9 pkgsrc-2013Q1:1.9.0.2 pkgsrc-2013Q1-base:1.9 pkgsrc-2012Q4:1.8.0.2 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.6.0.8 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.6 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.4 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.2 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.5.0.8 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.6 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.4 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.2 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.4.0.8 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.6 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.4 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.2 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.3.0.18 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.16 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.14 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.12 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.10 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.8 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.6 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.4 pkgsrc-2008Q1:1.3.0.2 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.2.0.2 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.1.1.1.0.4 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.2 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.18 date 2023.01.22.16.24.29; author ryoon; state Exp; branches; next 1.17; commitid I6x9r7paDLugxyaE; 1.17 date 2022.01.29.11.02.50; author schmonz; state Exp; branches; next 1.16; commitid BLzOGHRVDAwqgwqD; 1.16 date 2021.09.29.16.11.04; author adam; state Exp; branches; next 1.15; commitid T3fm8I7swMBTSRaD; 1.15 date 2021.04.22.21.41.52; author wiz; state Exp; branches; next 1.14; commitid JO65OFbR27MBRkQC; 1.14 date 2021.01.01.08.19.01; author ryoon; state Exp; branches; next 1.13; commitid AHHto7mNTaGpZZBC; 1.13 date 2020.01.12.10.10.04; author adam; state Exp; branches; next 1.12; commitid HxuNCpbNGX8JZnSB; 1.12 date 2019.08.30.15.30.44; author ryoon; state Exp; branches; next 1.11; commitid u64Q7eDh3X1284BB; 1.11 date 2019.08.22.12.17.52; author ryoon; state Exp; branches; next 1.10; commitid 8RUcNr6GNGVOj1AB; 1.10 date 2014.08.13.10.56.35; author adam; state Exp; branches; next 1.9; commitid sKHtHQfW5YoRQbMx; 1.9 date 2013.02.12.21.07.21; author adam; state Exp; branches; next 1.8; 1.8 date 2012.12.27.21.45.40; author wiz; state Exp; branches; next 1.7; 1.7 date 2012.10.31.11.16.42; author asau; state Exp; branches; next 1.6; 1.6 date 2011.10.11.10.02.08; author adam; state Exp; branches; next 1.5; 1.5 date 2010.11.26.20.47.00; author adam; state Exp; branches; next 1.4; 1.4 date 2009.10.14.06.40.08; author adam; state Exp; branches; next 1.3; 1.3 date 2008.01.04.19.58.40; author jmmv; state Exp; branches; next 1.2; 1.2 date 2007.11.29.22.27.13; author heinz; state Exp; branches; next 1.1; 1.1 date 2007.06.02.17.48.51; author jmmv; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.06.02.17.48.51; author jmmv; state Exp; branches; next ; desc @@ 1.18 log @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 or std::list, 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 (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 (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 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 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>. 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 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. + 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::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. @ text @# $NetBSD: Makefile,v 1.17 2022/01/29 11:02:50 schmonz Exp $ BOOST_PACKAGE= jam BOOST_COMMENT= (Boost.Jam utility) BOOST_CONFIG= no CONFLICTS+= boost-build<=1.33.1 .include "../../meta-pkgs/boost/Makefile.common" SUBST_CLASSES+= opt SUBST_MESSAGE.opt= Removing -O3 flag. SUBST_STAGE.opt= pre-build SUBST_FILES.opt= tools/build/src/engine/build.sh SUBST_SED.opt= -e 's,-O3,,g' .include "../../devel/boost-build/toolset.mk" INSTALLATION_DIRS= bin # Fix RELRO build CXXFLAGS+= ${LDFLAGS} USE_LANGUAGES+= c++11 do-build: cd ${WRKSRC}/tools/build/src/engine && \ ${SETENV} ${MAKE_ENV} ${SH} ./build.sh ${BOOST_TOOLSET} --cxxflags=${CXXFLAGS:Q} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/src/engine/b2 \ ${DESTDIR}${PREFIX}/bin .include "../../mk/bsd.pkg.mk" @ 1.17 log @Needs c++11. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2021/09/29 16:11:04 adam Exp $ a32 2 ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/src/engine/bjam \ ${DESTDIR}${PREFIX}/bin @ 1.16 log @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 or . 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 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2021/04/22 21:41:52 wiz Exp $ d22 3 a24 1 CXXFLAGS+= ${LDFLAGS} @ 1.15 log @boost-jam: fix RELRO build Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2021/01/01 08:19:01 ryoon Exp $ a6 2 PKGREVISION= 1 @ 1.14 log @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(-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 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 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 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 from a non-errored result, 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 and basic_outcome added. End users were finding an unhelpful gap in between is_basic_result and value_or_error 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) 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. * 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) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2020/01/12 10:10:04 adam Exp $ d7 2 d28 1 a28 1 ${SETENV} ${MAKE_ENV} ${SH} ./build.sh ${BOOST_TOOLSET} @ 1.13 log @boost: updated to 1.72.0 Version 1.72.0 Asio: Changed the async_initiate helper function to automatically deduce its return type, for C++11 or later. Changed all asynchronous operations to use automatically deduced return types, for C++14 or later. Introduced concepts to support async_initiate. Added the nested template type rebind_executor to all I/O object types. Changed the initiation function objects to report their associated I/O executor via the nested type executor_type and member function get_executor(). Added the default_completion_token trait, giving I/O executor types an associated default completion token type for use with asynchronous operations. This trait is specialised for the use_awaitable completion token, for example, to allow asynchronous operations to be used as follows: co_await socket.async_connect(my_endpoint). Added missing async_initiate to the Windows-specific I/O objects' asynchronous operations. Ensured that the executor type is propagated to newly accepted sockets. Changed to require that Protocol copy and move operations never throw. Changed to require that Endpoint default constructor and move operations never throw. Added the noexcept qualifier to protocol accessors. Added the noexcept qualifier to socket move constructors. Fixed issues associated with opening serial ports on Windows: Use the correct constant to initialise the RTS control flag. Specify a default baud rate (9600). Fixed a lost "outstanding work count" that can occur when an asynchronous accept operation is automatically restarted. Consult the Revision History for further details. Atomic: Added a workaround for __float128 not being considered as a floating point type by some versions of libstdc++. Improved compatibility with clang-win compiler. Beast: This is a maintenance update containing bug fixes, and updates to use the new features delivered in 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. Circular Buffer: Fix: max_size() now takes the allocator's max_size() into account. (Glen Fernandes) Context: architecture s390x supported execution_context removed Endian: Made endian_reverse, conditional_reverse and *_to_* constexpr on GCC and Clang Added convenience load and store functions Added floating point convenience typedefs Added a non-const overload of data(); changed its return type to unsigned char* Added __int128 support to endian_reverse when available Added a convenience header boost/endian.hpp Filesystem: Extracted filesystem_error to exception.hpp; file_status and associated enums and functions to file_status.hpp; directory_entry, directory_iterator and recursive_directory_iterator to directory.hpp. Deprecated: For backward compatibility operations.hpp still includes the new headers exception.hpp, file_status.hpp and directory.hpp, unless BOOST_FILESYSTEM_NO_DEPRECATED macro is defined. These implicit includes are considered deprecated and will be removed in a future release. Users are encouraged to include the new headers directly or include filesystem.hpp. The filesystem_error exception is now implemented in the compiled library of Boost.Filesystem. Users may need to add linking with Boost.Filesystem library in their projects. On POSIX.1-2008 platforms, use utimensat instead of utime. utime is declared obsolete in POSIX.1-2008 and can be disabled e.g. in uClibc-ng. directory_iterator is now left in the end state on memory allocation errors. In directory_iterator on POSIX systems, support for readdir/readdir_r has been reworked to avoid memory allocations for dirent structures when readdir is used. This reduces memory consumption and eliminates the possibility of buffer overruns in case if readdir produces a very long directory name. On Windows, use Boost.WinAPI to select the target Windows version. New: Added directory_options enum, which reflects the same named enum from C++20. The enum is supported in directory_iterator and recursive_directory_iterator to customize iteration behavior. In particular, the iterators now support skipping directories that can't be opened due to insufficient permissions. The symlink_option enum is now deprecated and should be replaced with directory_options. By default, recursive_directory_iterator is now reset to the end state in case of errors, as required by C++20. New: Added directory_options::pop_on_error option, which configures recursive_directory_iterator so that it attempts to recover from iteration errors by repeatedly invoking pop() until it succeeds or the end state is reached. New: Added directory_options::skip_dangling_symlinks option, which configures recursive_directory_iterator so that it doesn't follow dangling directory symlinks and continues iteration instead of reporting an error. Deprecated: The following members of recursive_directory_iterator are now marked as deprecated: level(), no_push_pending(), no_push_request(), no_push(). Users are advised to replace their use with the standard counterparts: depth(), recursion_pending(), disable_recursion_pending(). Note that recursion_pending() has the opposite meaning compared to no_push_pending() and no_push_request(). Deprecated methods will be removed in a future release. Fixed path::lexically_relative (and any dependent algorithms) to correctly handle empty, dot and dot-dot path elements in its argument. The behavior is made closer to C++17 std::path::lexically_relative in that empty and dot path elements are ignored and dot-dot path elements are accounted by decreasing the number of dot-dot path elements to generate in the resulting relative path. Functional/Factory: Glen Fernandes rewrote the implementations of factory and value_factory to provide the following features: Support r-value arguments when possible Support arbitrary number of arguments via variadic templates when possible Support allocators that are final Support allocators that use fancy pointers Support for disabled exceptions (BOOST_NO_EXCEPTIONS) Improved compilation times The following features have been removed: Increasing limits for C++03 compilers through BOOST_FUNCTIONAL_VALUE_FACTORY_MAX_ARITY Using boost::none_t in place of void through BOOST_FUNCTIONAL_FACTORY_SUPPORT_NONE_T GIL: Added GSoC 2019: Lanczos resampling for image down scaling. GSoC 2019: Methods for binary thresholding, inverted binary thresholding and truncation thresholding. GSoC 2019: Otsu thresholding method. GSoC 2019: Adaptive thresholding using mean or gaussian-weighted sum of the neighbourhood area. GSoC 2019: Harris response calculation (corner detector without non-maximum filtering). GSoC 2019: Hessian corner detector. GSoC 2019: Types for defining 2D kernel, kernel_2d and kernel_2d_fixed, in Numeric extension. GSoC 2019: Implementation of 2D convolution as new function convolve_2d. GSoC 2019: Box filtering using the average filter. GSoC 2019: Blur function based on normalized mean filter. GSoC 2019: Sobel and Scharr operators. GSoC 2019: Median filter to remove noise from image. Continued adding new test cases and significantly improved overall test coverage. Documented purpose of cached_location_t. Function convolve_1d in Numeric extension for convenient use of convolve_rows and convolve_cols. Function extend_boundary in Numeric extension to perform image boundary extension. Project release notes maintained in Markdown file RELEASES.md. Changed Move all tests, core features and extensions, inside test/ directory. Removed Replace Boost.MPL with Boost.MP11. Removed use of Boost.TypeTraits. Dropped support for GCC <= 4.8. Remove include/boost/gil/version.hpp file as unused. Fixed Undetermined value of default-initialized channel and pixel objects. Undefined behaviour due to std::is_trivially_default_constructible specializations. Crash when reading PNG files with an invalid header. Applied the Rule of Three for numerous types. Removed uses of deprecated implicit definition of defaulted copy assignment operator or copy constructor. Histogram: Several new features and performance improvements, some bug-fixes See the full Release Notes for a complete list of changes Log: Improved compatibility with clang-win compiler. MPI: Documentation clarifications. Fixed scatterv bug when using explicit input buffer offsets. Enable usage of MPI_Probe and friend with Intel MPI >= 2019.4 Symbol visibility on Windows Math: Added Hypergeometric functions 1F0, 0F1, 2F0, 1F1 and pFq. Added Jacobi polynomial (and derivatives) evaluation. Added Gegenbauer polynomial (and derivatives) evaluation. Added Cardinal B-Splines (and derivatives) as polynomial functions in their own right. Added Cardinal Trigonometric Interpolation. Added new statistics sub-section. Added One Sample Student's T Test. Added Anderson Darling test for normality. Added Ljung Box test for auto-correlation. Added Runs test for random sequences. The headers boost/math/tools/univariate_statistics.hpp and boost/math/tools/bivariate_statistics.hpp, have been deprecated in favor of boost/math/statistics/univariate_statistics.hpp and boost/math/statistics/bivariate_statistics.hpp. Added The Empirical CDF distribution. Reworked the Sterling approximation used by multiprecision gamma functions to be applicable to all the function that use the Lanczos approximation at regular precision. Also extended Lanczos approximations up to 100 decimal digit precision. Multiprecision: Big constexpr update allows cpp_int and float128 arithmetic to be fully constexpr with gcc and clang 9 or later, or any compiler supporting std::is_constant_evaluated(). Fix bug in variable precision mpf_float which causes it to go into a tailspin trying to select the correct precision - see https://github.com/boostorg/multiprecision/issues/164. Outcome: Enhancements: Standalone outcome is now make install-able, and cmake find_package() can find it. Note that you must separately install and find_package() Outcome's dependency, quickcpplib, else find_package() of Outcome will fail. The git submodule mechanism used by standalone Outcome of specifying dependent libraries has been replaced with a cmake superbuild of dependencies mechanism instead. Upon cmake configure, an internal copy of quickcpplib will be git cloned, built and installed into the build directory from where an internal find_package() uses it. This breaks the use of the unconfigured Outcome repo as an implementation of Outcome, one must now do one of: 1. Add Outcome as subdirectory to cmake build. 2. Use cmake superbuild (i.e. ExternalProject_Add()) to build and install Outcome into a local installation. 3. Use one of the single header editions. For standalone Outcome, the current compiler is now checked for whether it will compile code containing C++ Concepts, and if it does, all cmake consumers of Outcome will enable C++ Concepts. Set the cmake variable CXX_CONCEPTS_FLAGS to an empty string to prevent auto detection and enabling of C++ Concepts support occurring. OUTCOME_TRY operation now hints to the compiler that operation will be successful. [P1886 Error speed benchmarking](https://wg21.link/P1886) showed that there is considerable gain in very small functions by hinting to the compiler whether the expression is expected to be successful or not. OUTCOME_TRY previously did not hint to the compiler at all, but now it does. A new suite of macros OUTCOME_TRY_FAILURE_LIKELY hint to the compiler that failure is expected. If you wish to return to the previously unhinted behaviour, define OUTCOME_TRY_LIKELY(expr) to (!!expr). Support for C++ Coroutines has been added. This comes in two parts, firstly there is now an OUTCOME_CO_TRY() operation suitable for performing the TRY operation from within a C++ Coroutine. Secondly, in the header outcome/coroutine_support.hpp there are implementations of eager and lazy which let you more naturally and efficiently use basic_result or basic_outcome from within C++ Coroutines -- specifically, if the result or outcome will construct from an exception pointer, exceptions thrown in the coroutine return an errored or excepted result with the thrown exception instead of throwing the exception through the coroutine machinery (which in current compilers, has a high likelihood of blowing up the program). Both eager and lazy can accept any T as well. Both have been tested and found working on VS2019 and clang 9. make_error_code() and make_exception_ptr() are now additionally considered for compatible copy and move conversions for basic_result<>. This lets you construct a basic_result into a basic_result, where E is a custom type which has implemented the ADL discovered free function error_code make_error_code(E), but is otherwise unrelated to error_code. The same availability applies for exception_ptr with make_exception_ptr() being the ADL discovered free function. basic_outcome<> has less support for this than basic_result<> in order to keep constructor count down, but it will accept via this mechanism conversions from basic_result<> and failure_type<>. Bug fixes: The detection of [[nodiscard]] support in the compiler was very mildly broken. PolyCollection: Maintenance work. Preprocessor: Topic added which discusses emptiness Support for the C++20 __VA_OPT__ construct BOOST_PP_VARIADIC_HAS_OPT whether __VA_OPT__ is supported at the C++20 level BOOST_PP_CHECK_EMPTY test for emptiness using __VA_OPT__ at the C++20 level BOOST_PP_VA_OPT more flexible alternative to __VA_OPT__ at the C++20 level Smart Pointers: Implemented allocate_unique for scalars and arrays. (Glen Fernandes) Test: Boost.test v3.12 see the Changes log for more details. New feature: Support for C++17 std::string_view has been added. Better diagnostic on boost::exception and no rtti mode (thanks to Mikhail Pilin / [pull_request 234]) VMD: BOOST_VMD_IS_EMPTY updated to use __VA_OPT__ at the C++20 level has 100% reliability @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2019/08/30 15:30:44 ryoon Exp $ a10 6 SUBST_CLASSES+= bb SUBST_MESSAGE.bb= Fixing path to Boost.Build files. SUBST_STAGE.bb= pre-build SUBST_FILES.bb= tools/build/src/engine/Jambase SUBST_SED.bb= -e 's,/usr/share/boost-build,${PREFIX}/share/boost-build,g' @ 1.12 log @Fix RELRO build, bump PKGREVISION Reported by wiz@@, thank you. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2019/08/22 12:17:52 ryoon Exp $ a2 1 PKGREVISION= 1 d17 6 @ 1.11 log @Update to 1.71.0 Changelog: New Libraries Variant2: A never-valueless, strong guarantee implementation of std::variant, from Peter Dimov. Updated Libraries Align: Support for any integral type in the integral versions of align_up and align_down. Revised the implementation of aligned_allocator to no longer require a specialization for void. Define propagate_on_container_move_assignment and is_always_equal in aligned_allocator. Asio: Improved performance slightly by eliminating a redundant move construction when completed handlers are dispatched. Eliminated a compiler warning by annotating a case fall-through in the free function connect() implementation. Fixed the is_*_buffer_sequence detection traits for user-defined sequence types. Fixed some Windows-specific warnings about an incompatible pointer cast when obtaining the CancelIoEx entry point. Changed to automatically set the defaults when opening a serial port on Windows. Changed the serial port get_option() member function to be const. Fixed a name hiding issue with the WinRT stream-oriented socket backend's shutdown function. Applied a minor fix to the documentation for is_dynamic_buffer. Added some support for Haiku OS. Added wolfSSL compatability. Changed to require C++17 or later for coroutines TS support with clang. Fixed a doxygen generation problem in the tutorial. Ensured example programs are correctly incorporated into the documentation. Any: Static initialization of the default constructed boost::any is now possible. Fixed performance regression in assignment on a compilers without move-semantics. Maintenance work. Beast: This version consists mostly of bug fixes and performance improvements. Substantial work included for the split compilation mode, to reduce compile time when defining BOOST_BEAST_SEPARATE_COMPILATION. We'd love to know how you or your company use Beast, consider adding an item to the Companies and Individuals Using Beast list. See the full Release Notes for a complete list of changes. Circular Buffer: Correct doxygen generated reference to no longer show internal members. (Glen Fernandes) Eliminate ubsan warning on add and sub. (Glen Fernandes) Fix incorrect check in is_uninitialized. (Niklas Fejes) Container: Fixed bugs: GitHub #47: "added alignment specification for small_vector". GitHub #88: "Implement C++17 MoveAssignable requirements for self-move assignments". GitHub #107: "Alignment ignored in resource_adaptor". GitHub #109: "Get rid of integer overflow in copy_move_algo.hpp (-fsanitize=integer)". GitHub #110: "Avoid gcc 9 deprecated copy warnings in new_allocator.hpp". GitHub #112: "vector::resize() compilation error with msvc-10..12: data is not a member of boost::detail::aligned_storage". GitHub #114: "Fix small_vector noexcept specification". GitHub #116: "MSVC + boost 1.70 compilation error when windows.h is already included (detail/thread_mutex.hpp)". GitHub #117: "flat_map/map::insert_or_assign with hint has wrong return types". GitHub #118: "Non-unique inplace_set_difference used in in flat_tree_merge_unique and iterator invalidation in insert_unique". GitHub #122: "Fix has_trivial_destructor_after_move". GitHub #123: "With heterogeneous lookup, equal_range can result in a range with length greater than 1". deque can now have options, using deque_options. The block size/bytes can be be specified. static_vector can now have options, using static_vector_options. Alignment and throwing behaviour can be be specified. small_vector can now have options, using small_vector_options. Alignment and growth factor can be be specified. Context: Add support for RISC-V LP64D #72: Fix ABI violation on ppc64 ELFv2 #99: cleanup of stack if creating ucontext fails Conversion: Maintenance work. Core: Added functions alloc_construct, alloc_construct_n, alloc_destroy, and alloc_destroy_n in for allocator aware and exception safe construction and destruction of objects and arrays. (Glen Fernandes) Added constexpr functions first_scalar in for obtaining a pointer to the first scalar element of an array. Given a pointer of type T* they return a pointer of type remove_all_extents_t*. (Glen Fernandes) Added class template noinit_adaptor in which is an allocator adaptor that converts any allocator into one whose construct(ptr) performs default initialization via placement new, and whose destroy(ptr) invokes the value_type destructor directly. (Glen Fernandes) Added class template default_allocator in , which can serve as a minimal default allocator that has interface similar to C++20 std::allocator, supports configurations with disabled exceptions and does not have std as an associated namespace. The allocator uses operator new and operator delete for allocation. (Glen Fernandes) In header, added workarounds for better compatibility with QNX SDP 7.0 when libc++/libc++abi libraries are used. (Andrey Semashev, #59) The header is now marked as deprecated and will be removed in a future release. should be used instead. (Peter Dimov) Dynamic Bitset: Enabled hardware-assisted popcount on MSVC (#38). Added support for boost::hash and std::hash (#45). Support copy-initialization with default constructor (#48). Endian: Clarified requirements on the value type template parameter Added support for float and double Added endian_load, endian_store Updated endian_reverse to correctly support all non-bool integral types Moved deprecated names to the deprecated header endian.hpp Fiber: documentation for shared_work updated Filesystem: Fixed incorrect error_code returned from directory iterator increment when readdir_r is used. For path, fixed rvalue-aware operator/ return type to return an rvalue instead of rvalue reference. This fixes leaving a dangling reference in the user's code if the result of operator/ is bound to a const reference. (#110) Fixes for better compatibility with Windows CE. (#24) Added minimal support for CMake. (#106) Flyweight: Maintenance work. Histogram: New features: Support for thread-safe storages and new thread-safe accumulators Support for compiling without exceptions/RTTI (increases performance by 10-20 %) (with Glen Fernandes) Performance improvements for 1D and 2D histograms boost::histogram::indexed now returns forward iterator range instead of input iterator range boost::histogram::indexed_range::accessor is now non-copyable and acts like reference to cell value, making more algorithms from the C++ stdlib work boost::histogram::algorithm::reduce with new slice option and option fusion boost::histogram::algorithm::project accepts runtime indices for static histograms Bug Fixes: boost::histogram::algorithm::reduce also works on histograms that have some axis types without reduction support boost::histogram::axis::traits::update now works correctly for boost::histogram::axis::variant Other: 100 % test coverage Reduced internal Boost dependencies Improved documentation and examples Guaranteed no-throw moves for all builtin axis types Compile cleanly at higher warning levels See changelog for more details. IoStreams: Fixed processing of multi-stream files (#87). Added support for multi-threaded LZMA (#95). Interprocess: GitHub #85 ("warning: Implicit conversion loses integer precision"). GitHub #86 ("warning: Possible misuse of comma operator"). Intrusive: GitHub #42: Documentation does not describe treap priority_of_value changes GitHub #43: Fix tests with BOOST_INTRUSIVE_VARIADIC_TEMPLATES enabled GitHub #45: Disable variadic templates for MSVC-12 to avoid ICEs LexicalCast: Added tests for boost::filesystem::path conversions #25. Maintenance work, including #28. Log: New features: Improved support for C++17 std::string_view in basic_formatting_ostream. The string view can now participate in character code conversion on output. Added auto_newline formatter and stream manipulator. It can be used to ensure that formatted output always ends with a newline while avoiding duplicate newlines. In the output stream, text file and text multi-file sink backends added support for configuring behavior with regard to appending a trailing newline to every formatted log record. Use auto_newline_mode named parameter of the backend constructor or call the set_auto_newline_mode method on the sink backend. Note: The default behavior with regard to trailing newlines added by sink backends has changed slightly compared to the previous Boost.Log releases. The backends will now only add a trailing newline if there isn't one in the formatted log message string already. In previous releases a newline was added unconditionally. Added support for passing arbitrary function objects in the filter and format named parameters to sink constructors and convenience functions for initializing sinks. For example, it is now possible to specify C++11 lambda functions directly in these parameters. (#63) In the default filter and formatter factories used in filter and formatter parsers, added support for severity level attribute values of type boost::log::trivial::severity_level. For filters, the support is limited to attributes with "Severity" name. Bug fixes: Fixed incorrect parsing of components of the rotated file names while scanning for files in the text file sink backend. If the file name pattern ended with a placeholder (for example, a file counter), the scan_for_files method would not find files matching that pattern in the target storage, leaving them unmanaged. In particular, such files would not be deleted to free target storage. (#78) Updated basic_formatting_ostream and basic_record_ostream to make it possible to overload stream output operators for pointers to user-defined types. User-defined operator<< overloads taking std::basic_ostream and a pointer argument should now be picked up by the compiler when the pointer is being written to one of Boost.Log streams. (#84) See changelog for more details. Math: New features: Catmull-Rom interpolator now works in C++11 Cardinal quadratic B-spline interpolation Domain of elliptic integrals extended sin_pi and cos_pi performance improvements Forward-mode automatic differentiation Vector valued barycentric rational interpolation Ooura's method for evaluation of Fourier integrals Bug fixes: Multiple compatibility issues with Multiprecision fixed Lambert-W fixed on a rare architecture Metaparse: New features: In C++11 variadic template support for the following: sequence, one_of_c, one_of, repeated_one_of, repeated_one_of1, one_char_except_c, one_char_except. Bug fixes: BOOST_METAPARSE_STRING does not use out of range character values as template arguments. any_of_c<> does not create empty array in C++14. Move: Git Issue #26: "Invalid iterator increment/decrement in the last iteration of adaptive_sort_combine_blocks". Multi Array: Simplify allocator support by using new alloc_construct_n and alloc_destroy_n facilities from Core. (Glen Fernandes) Multi-index Containers: Added variants of const_mem_fun and mem_fun for differently qualified member functions (issue #24). Terse key specification syntax now correctly handles noexcept-specified member functions (issue #24). Outcome: Enhancements: #184 As per request from Boost release managers, relocated version.hpp and revision.hpp into detail, and added the Boost licence boilerplate to the top of every source file which was missing one (I think). Also took the opportunity to run the licence restamping script over all Outcome, so copyright dates are now up to date. #185 Add FAQ item explaining issue #185, and why we will do nothing to fix it right now. #189 Refactored the OUTCOME_TRY implementation to use more clarified customisation points capable of accepting very foreign inputs. Removed the std::experimental::expected specialisations, as those are no longer necessary. Fixed the documentation for the customisation points which previously claimed that they are ADL discovered, which they are not. Added a recipe describing how to add in support for foreign input types. #183 Added a separate motivation/plug_error_code specifically for Boost. Bug fixes: OUTCOME_VERSION_MINOR hadn't been updated to 1. #181 Fix issue #181 where Outcome didn't actually implement the strong swap guarantee, despite being documented as doing so. #190 Fix issue #190 in Boost edition where unit test suite was not runnable from the Boost release distro. #182 Fix issue #182 where trait::is_exception_ptr_available was always true, thus causing much weirdness, like not printing diagnostics and trying to feed everything to make_exception_ptr(). #192 Fix issue #192 where the std::basic_outcome_failure_exception_from_error() was being defined twice for translation units which combine standalone and Boost Outcome's. Parameter: Upgraded keyword generation macro BOOST_PARAMETER_TEMPLATE_KEYWORD (#15). Moved keyword generation macro BOOST_PARAMETER_NESTED_KEYWORD from Accumulators to this library (#28). Added support for std::reference_wrapper and std::ref() (#16). Moved boost::parameter::required, boost::parameter::optional, and boost::parameter::deduced metafunction definitions to their own header files in directory boost/parameter (#18). Added support for Boost.Parameter-enabled function call operators (#20). Added support for parameter category qualifiers "forward", "consume", and "move_from" (current qualifiers are "in", "out", and "in_out") (#21) (#23) based on http://www.modernescpp.com/index.php/c-core-guidelines-how-to-pass-function-parameters. Added new usage syntax BOOST_PARAMETER_NAME((object-name), namespace-name) qualifier(tag-name)) and BOOST_PARAMETER_NAME(qualifier(name)). (Existing code that uses qualifiers directly and correctly with BOOST_PARAMETER_FUNCTION and other code generation macros should remain unaffected for now, so no breaking changes.) The reason for the change in usage is to enable applying of parameter category constraints to Boost.Parameter-enabled functions and constructors invoked through argument composition. (Otherwise, it is currently possible to use argument composition to bypass parameter category constraints applied in BOOST_PARAMETER_FUNCTION et. al.) Added support for perfect forwarding (#23) (#26), so that parameter::parameters::operator() can accept non-const rvalues. As a positive side effect, Boost.Parameter-enabled functions and constructors are no longer bound by BOOST_PARAMETER_MAX_ARITY on compilers that support perfect forwarding. User code can now check for this support by detecting the configuration macro BOOST_PARAMETER_HAS_PERFECT_FORWARDING, or manually turn off this support by defining the configuration macro BOOST_PARAMETER_DISABLE_PERFECT_FORWARDING. Added metafunctions boost::parameter::is_argument_pack (#27), boost::parameter::are_tagged_arguments (#52), and boost::parameter::result_of::compose (#75). Added variadic function template boost::parameter::compose() which takes in named arguments and returns them in an argument pack (#52). For compilers that do not support perfect forwarding, the configuration macro BOOST_PARAMETER_COMPOSE_MAX_ARITY determines the maximum number of arguments that boost::parameter::compose() can take in (#61). Added code generation macros BOOST_PARAMETER_BASIC_FUNCTION_CALL_OPERATOR, BOOST_PARAMETER_BASIC_CONST_FUNCTION_CALL_OPERATOR, BOOST_PARAMETER_NO_SPEC_FUNCTION, BOOST_PARAMETER_NO_SPEC_MEMBER_FUNCTION, BOOST_PARAMETER_NO_SPEC_CONST_MEMBER_FUNCTION, BOOST_PARAMETER_NO_SPEC_FUNCTION_CALL_OPERATOR, BOOST_PARAMETER_NO_SPEC_CONST_FUNCTION_CALL_OPERATOR, BOOST_PARAMETER_NO_SPEC_CONSTRUCTOR, and BOOST_PARAMETER_NO_SPEC_NO_BASE_CONSTRUCTOR (#52). Added support for Boost.MP11 (#47) (#66) (#70). User code can now check for this support by detecting the configuration macro BOOST_PARAMETER_CAN_USE_MP11, or manually turn off this support by defining the configuration macro BOOST_PARAMETER_DISABLE_MP11_USAGE. Improved support for parameter-dependent return types via SFINAE (#73). PtrContainer: Fix a ptr_vector regression introduced in 1.66.0 (#24). PolyCollection: Maintenance work. SmartPtr: Added aliasing constructors to weak_ptr Added weak_ptr::empty() Added enable_shared_from, shared_from, and weak_from Stacktrace: Fixed output of name(), source_location() and source_line() for the default constructed frame with thread sanitizer builds in C++98 mode. Fixed output of long strings from name() and source_location() on MSVC #78. Maintenance work. Test: Boost.test v3.11 see the Changes log for more details. Breaking changes: Boost.Test shows deprecation warnings if some very old headers as deprecated. If you encounter such warnings, please follow the indications: those headers will be removed in a future release. New feature: Now BOOST_TEST can be used to compare abstract types Bug fixes and pull requests: GitHub Issues: #209, #218 GitHub Pull Requests: #219, #224 Utility: Implemented function template ostream_string in to optimally write any kind of string content to an output stream. It satisfies the requirements of [ostream.formatted.reqmts]. (Glen Fernandes) Optimized the stream output operators of basic_string_view and basic_string_ref to write directly to the rdbuf stream buffer. (Glen Fernandes) Uuid: Breaking change: MD5 name-based uuid generation was corrected to be identical on all endian systems. Define BOOST_UUID_COMPAT_PRE_1_71_MD5 to keep the result in a format compatible with 1.66 through 1.70. This does not affect the default name-based uuid generation which is based on SHA1. (#109) Variant: Fixed compilation of boost::apply_visitor with variants passed by non const reference in #68. Many thanks to Ed Catmur for providing the fix. Added support for std::hash (#49). Macro BOOST_VARIANT_DO_NOT_SPECIALIZE_STD_HASH could be defined to avoid those specializations. Added micro optimizations for binary size and performance by Nikita Kniazev in #63 and #66. Maintenance work, including #64 by Nikita Kniazev and #67 by Hans Dembinski. YAP: Added an example showing how to make self-evaluating YAP expressions (that is, expressions that don't need an explicit call to evaluate() or transform()). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2014/08/13 10:56:35 adam Exp $ d3 1 d22 3 @ 1.10 log @Changes 1.56.0: Modularization Boost version control has migrated to a system using git submodules. This shouldn't make too much of a difference to users, although the directory structure is now a bit different. Parts of some libraries have been moved into different modules, and several new modules have been extracted from existing code. All header paths should remain the same. The new modules are: Assert: Customizable assert macros. Maintained by Peter Dimov. Core: Core utilities used by other libraries, with minimal dependencies. Maintained by Peter Dimov, Glen Fernandes and Andrey Semashev. Lexical_Cast: General literal text conversions, such as an int represented a string, or vice-versa, from Kevlin Henney. Throw_Exception: A common infrastructure for throwing exceptions from Boost libraries, from Emil Dotchevski. Winapi: Windows API declarations without , for internal Boost use. New Libraries Align: Memory alignment functions, allocators, and adaptors, from Glen Fernandes. Type_Index: Runtime/Compile time copyable type info, from Antony Polukhin. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2013/02/12 21:07:21 adam Exp $ d26 3 a28 1 ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/src/engine/bin.*/bjam \ @ 1.9 log @Changes 1.53.0: New Libraries: Atomic: C++11-style atomic<>, from Helge Bahmann, maintained by Tim Blechmann. Coroutine: Coroutine library, from Oliver Kowalke. Lockfree: Lockfree data structures, from Tim Blechmann. Multiprecision: Extended precision arithmetic types for floating point, integer and rational arithmetic from John Maddock and Christopher Kormanyos. Odeint: Solving ordinary differential equations, from Karsten Ahnert and Mario Mulansky. News This release contains a fix for ticket 7743, in Boost.Locale. For more details, see the security notice. More info http://www.boost.org/users/history/version_1_53_0.html @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2012/12/27 21:45:40 wiz Exp $ d14 1 a14 1 SUBST_FILES.bb= tools/build/v2/engine/Jambase d22 1 a22 1 cd ${WRKSRC}/tools/build/v2/engine && \ d26 1 a26 1 ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/v2/engine/bin.*/bjam \ @ 1.8 log @Fix path to Jambase. From Richard Palo in PR 47320. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2012/10/31 11:16:42 asau Exp $ a10 2 PKGREVISION= 1 @ 1.7 log @Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2011/10/11 10:02:08 adam Exp $ d11 2 d16 1 a16 1 SUBST_FILES.bb= tools/jam/src/Jambase @ 1.6 log @Changes 1.47.0: New Libraries * Chrono: Useful time utilities * Geometry: Geometry Library * Phoenix: Define small unnamed function objects at the actual call site, and more * Ratio: Compile time rational arithmetic More: http://www.boost.org/users/history/version_1_47_0.html @ text @d1 1 a1 3 # $NetBSD: Makefile,v 1.5 2010/11/26 20:47:00 adam Exp $ PKG_DESTDIR_SUPPORT= user-destdir @ 1.5 log @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 in favour of @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2009/10/14 06:40:08 adam Exp $ d24 1 a24 1 cd ${WRKSRC}/tools/build/v2/engine/src && \ d28 1 a28 1 ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/v2/engine/src/bin.*/bjam \ @ 1.4 log @Changes 1.40.0: * Build System improvements. * Updated Libraries: Accumulators, Asio, Circular Buffer, Foreach, Function, Fusion, Hash, Interprocess, Intrusive, MPL, Program.Options, Proto, Random, Serialization, Unordered, Xpressive. Changes 1.39.0: * New Libraries: Signals2. * Updated Libraries: Asio, Flyweight, Foreach, Hash, Interprocess, Intrusive, Program.Options, Proto, PtrContainer, Range, Unordered, Xpressive. * Updated Tools: Boostbook, Quickbook. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2008/01/04 19:58:40 jmmv Exp $ d24 2 a25 2 cd ${WRKSRC}/tools/jam/src && \ ${SETENV} ${MAKE_ENV} ${SH} ./build.sh ${BOOST_TOOLSET} d28 2 a29 2 ${INSTALL_PROGRAM} ${WRKSRC}/tools/jam/src/bin.*/bjam \ ${DESTDIR}${PREFIX}/bin @ 1.3 log @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 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 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 overloads added s.t. one can also pass std::auto_ptr instead of only T* arguments to member functions. o transfer() now has weaker requirements s.t. one can transfer objects from ptr_container to ptr_container, * 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. @ text @d1 1 a1 2 # $NetBSD: Makefile,v 1.2 2007/11/29 22:27:13 heinz Exp $ # d29 1 a29 1 ${DESTDIR:Q}${PREFIX}/bin @ 1.2 log @Package supports installation to DESTDIR. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2007/06/02 17:48:51 jmmv Exp $ d17 1 a17 1 SUBST_FILES.bb= tools/build/jam_src/Jambase a23 3 pre-build: rm ${WRKSRC}/tools/build/jam_src/jambase.c d25 1 a25 1 cd ${WRKSRC}/tools/build/jam_src && \ d29 1 a29 1 ${INSTALL_PROGRAM} ${WRKSRC}/tools/build/jam_src/bin.*/bjam \ @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2006/01/20 20:40:19 jmmv Exp $ d4 2 d33 1 a33 1 ${PREFIX}/bin @ 1.1.1.1 log @Reimport of boost-build as boost-jam (version 1.33.1). This is to comply with the Boost.Build packaging guidelines. boost-build will now provide the real complete build framework, not only the bjam tool. @ text @@