From 1f5fa178fce4aa0475c4394703978abbc6ce91c4 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Sun, 29 Nov 2026 15:22:43 +1000 Subject: [PATCH] Clean up stale documentation Remove outdated content and bring the release notes up to date. circular_buffer.qbk: - Replace the Trac Tickets section with a Reporting Issues section that points to GitHub. The old section linked to the retired svn.boost.org Trac and listed tickets from around 2013, some of which have since been fixed. - Add release notes for Boost 1.57 to 1.91, based on the header commits in each boost-1.x.0 tag. They previously stopped at 1.56. - Remove 19 unused link macros left over from the documentation template, including two that linked to Boost 1.53 pages. - Make the Smart Pointers link version-independent, remove a stray link to Wikipedia's auto_ptr page, and note that std::auto_ptr was removed in C++17. - Fix a malformed list item in the 1.37 release notes. jamfile.v2: - Add BOOST_NOEXCEPT and BOOST_NOEXCEPT_IF to the Doxygen PREDEFINED list. The headers use them throughout, but they were not mapped. - Remove the PREDEFINED entries copied from Boost.Units and the unused BOOST_CONTAINER_NOEXCEPT entries. - Turn off verbose AutoIndex output. circular_buffer_bound_example.cpp: - A doc comment still named boost::progress_timer and linked to the Boost 1.53 timer docs. Name boost::timer::auto_cpu_timer instead, use a version-independent link, and fix the typo "first-int". --- doc/circular_buffer.qbk | 91 ++++++++--------------- doc/jamfile.v2 | 12 +-- example/circular_buffer_bound_example.cpp | 6 +- 3 files changed, 39 insertions(+), 70 deletions(-) diff --git a/doc/circular_buffer.qbk b/doc/circular_buffer.qbk index a7177e4c..37f0c9fc 100644 --- a/doc/circular_buffer.qbk +++ b/doc/circular_buffer.qbk @@ -11,43 +11,12 @@ [source-mode c++] ] -[/ Links - by (most common) convention, prefixed with double underscore so not confused with other names.] -[def __alert [$./images/alert.png]] [/ Examples of your own images (in doc/html/images/ .] -[def __tip [$./images/tip.png]] -[/ If you provide a file type like .png, you will probably find that the file is missing in the pdf version.] -[/ This is because the default file type specified is .png in html, but .svg for pdf version.] - -[/ Some links to external sources.] -[/ You often want to link more than once, so using a def ensures you always refer to the same location.] -[def __boost [@http://www.boost.org/ Boost]] [/Boost.org] -[def __boostroot [@boost: Boost root]] [/ Your boost root] -[/Note the custom boost root url schema for linking to files within the Boost distribution.] -[/Note It can't be used for images, nor for pdf, so not so useful.] -[/def __boostlicense [@http://www.boost.org/LICENSE_1_0.txt Boost License]] -[/ Or refer to your most recent version of Boost.] -[def __boostlicense [@boost:/LICENSE_1_0.txt Boost License]] -[def __boostbook [@http://www.boost.org/doc/html/boostbook.html BoostBook]] -[def __boostbook_docs [@http://www.boost.org/doc/libs/1_53_0/doc/html/boostbook.html BoostBook documentation]] -[def __quickbook [@http://www.boost.org/doc/tools/quickbook/index.html Quickbook]] -[def __quickbook_syntax [@http://www.boost.org/doc/libs/1_53_0/doc/html/quickbook/ref.html Quickbook Syntax Compendium]] -[def __docbook [@http://www.docbook.org/ DocBook]] -[def __doxygen [@http://www.doxygen.org/ Doxygen]] -[def __autoindex [@boost:/tools/auto_index/doc/html/index.html AutoIndex]] -[def __pdf [@http://www.adobe.com/products/acrobat/adobepdf.html PDF]] -[def __textpad [@http://www.textpad.com Textpad]] -[def __emacs [@http://www.gnu.org/software/emacs/ GNU emacs]] -[def __css [@http://en.wikipedia.org/wiki/Cascading_Style_Sheets Cascading Style Sheet]] -[def __intro [link circular_buffer.intro Introduction]] [/Link to a Quickbook section (see below).] - -[def __docbook_params [@http://docbook.sourceforge.net/release/xsl/current/doc/ Docbook xsl:param format options]] - +[/ Links - by convention, prefixed with double underscore so not confused with other names.] [def __cb [classref boost::circular_buffer circular_buffer]] [def __cbso [classref boost::circular_buffer_space_optimized circular_buffer_space_optimized]] [def __min_capacity [memberref boost::circular_buffer_space_optimized::min_capacity() min_capacity]] [def __capacity_control [memberref boost::circular_buffer_space_optimized::capacity_control () capacity_control ]] -[def __debug_support [link circular_buffer.implementation.debug_support debug support]] - [include ../../../tools/auto_index/include/auto_index_helpers.qbk] [/ Must be first included file!] @@ -315,11 +284,10 @@ This leads us to the following situation: The __cb should not be used for storing pointers to dynamically allocated objects. When a circular buffer becomes full, further insertion will overwrite the stored pointers - resulting in a [*memory leak]. One recommend alternative is the use of smart pointers, for example -[@http://www.boost.org/doc/libs/1_53_0/libs/smart_ptr/smart_ptr.htm Boost Smart pointers]. - -[@http://en.wikipedia.org/wiki/Std::auto_ptr std::auto_ptr] +[@boost:libs/smart_ptr/index.html Boost.SmartPtr]. -[caution Any container of `std::auto_ptr` is considered particularly hazardous.] +[caution Any container of `std::auto_ptr` is considered particularly hazardous. +(`std::auto_ptr` was deprecated in C++11 and removed in C++17.)] [tip Never create a circular buffer of `std::auto_ptr`. Refer to Scott Meyers' excellent book Effective STL for a detailed discussion. @@ -495,46 +463,51 @@ The Alloc has to meet the allocator requirements imposed by STL.]] [endsect] [/section:template_params Template Parameters] -[section:tickets Trac Tickets] +[section:issues Reporting Issues] -Report and view bugs and features by adding a ticket at [@https://svn.boost.org/trac/boost Boost.Trac]. +Report bugs and request features in the +[@https://github.com/boostorg/circular_buffer/issues GitHub issue tracker]. +Pull requests are welcome at [@https://github.com/boostorg/circular_buffer boostorg/circular_buffer]. -Existing open tickets for this library alone can be viewed -[@https://svn.boost.org/trac/boost/query?status=assigned&status=new&status=reopened&component=circular_buffer&col=id&col=summary&col=status&col=owner&col=type&col=milestone&order=priority here]. -Existing tickets for this library - including closed ones - can be viewed -[@https://svn.boost.org/trac/boost/query?status=assigned&status=closed&status=new&status=reopened&component=circular_buffer&col=id&col=summary&col=status&col=owner&col=type&col=milestone&order=priority here]. +[endsect] [/section:issues Reporting Issues] -Type: Bugs +[section:release Release Notes] -[@https://svn.boost.org/trac/boost/ticket/4100 #4100] Some boost classes have sizeof that depends on NDEBUG. +[h4 Boost 1.91] -[@https://svn.boost.org/trac/boost/ticket/5362 #5362] circular_buffer does not compile with BOOST_NO_EXCEPTIONS. +* Avoided a GCC 4.x warning about calling `memset` with a constant size of zero. -[@https://svn.boost.org/trac/boost/ticket/6277 #6277] Checked iterators are not threadsafe. +[h4 Boost 1.81] -[@https://svn.boost.org/trac/boost/ticket/6747 #6747] Circular_Buffer / Bounded_Buffer inside Template class problem. +* Fixed `-Wdeprecated-copy` warnings. -[@https://svn.boost.org/trac/boost/ticket/7025 #7025] circular buffer reports warning: " type qualifiers ignored on function return type" while compile. +[h4 Boost 1.74] -[@https://svn.boost.org/trac/boost/ticket/7950 #7950] Eliminate W4-warnings under VS2005. +* Added `cbegin()` and `cend()`. +* Simplified allocator support using Boost.Core's `allocator_access`. -[@https://svn.boost.org/trac/boost/ticket/8012 #8012] Inconsistency in `linearize()`. +[h4 Boost 1.72] -[@https://svn.boost.org/trac/boost/ticket/8438 #8438] `vector` & __cb storage misbehave when using compiler optimizations. +* `max_size()` now uses the allocator's `max_size()` when available. -Type: Feature Requests +[h4 Boost 1.71] -[@https://svn.boost.org/trac/boost/ticket/5511 #5511] Documentation needs some improvement. +* Fixed the internal check for uninitialized memory when the buffer is not wrapped. +* Eliminated undefined-behaviour sanitizer warnings in internal pointer arithmetic. -[@https://svn.boost.org/trac/boost/ticket/7888 #7888] circular_buffer should support move semantics. +[h4 Boost 1.69] -Type: Patches +* Used the empty base optimization for the allocator. +* Stopped inheriting from `std::iterator`, which is deprecated in C++17. +* Dropped the dependency on Boost.Iterator and removed other unnecessary includes. -[@https://svn.boost.org/trac/boost/ticket/8032 #8032] Warning fixes in circular_buffer. +[h4 Boost 1.62] -[endsect] [/section:tickets Trac Tickets] +* Debug support is now disabled by default. Define `BOOST_CB_ENABLE_DEBUG` to 1 to enable it. -[section:release Release Notes] +[h4 Boost 1.57] + +* Used `move_if_noexcept` from Boost.Move. [h4 Boost 1.56] @@ -552,7 +525,7 @@ Type: Patches [h4 Boost 1.37] - *Added new methods is_linearized() and rotate(const_iterator). +* Added new methods is_linearized() and rotate(const_iterator). * Fixed bugs: [@https://svn.boost.org/trac/boost/ticket/1987 #1987] Patch to make circular_buffer.hpp #includes absolute. [@https://svn.boost.org/trac/boost/ticket/1852 #1852] Copy constructor does not copy capacity. diff --git a/doc/jamfile.v2 b/doc/jamfile.v2 index d3eb932c..31ef5b19 100644 --- a/doc/jamfile.v2 +++ b/doc/jamfile.v2 @@ -59,16 +59,12 @@ doxygen autodoc "PREDEFINED= \\ \"BOOST_PREVENT_MACRO_SUBSTITUTION\" \\ \"BOOST_STATIC_CONSTANT(T,V)=static x const y\" \\ - \"BOOST_UNITS_AUTO_STATIC_CONSTANT(a,b)=static const auto a = b\" \\ \"BOOST_DEDUCED_TYPENAME=typename\" \\ \"BOOST_CONSTEXPR=constexpr\" \\ - \"BOOST_CONTAINER_NOEXCEPT=noexcept\" \\ - \"BOOST_CONTAINER_NOEXCEPT_IF(T)=noexcept(T)\" \\ - \"BOOST_UNITS_TYPEOF(a)=typeof(a)\" \\ - \"BOOST_UNITS_HAS_TYPEOF=1\" \\ - \"BOOST_MPL_ASSERT(expr)=\" \\ + \"BOOST_NOEXCEPT=noexcept\" \\ + \"BOOST_NOEXCEPT_IF(T)=noexcept(T)\" \\ \"BOOST_ASSERT(expr)=\" \\ - \"BOOST_RV_REF(T)=T &&\" \\ + \"BOOST_RV_REF(T)=T &&\" \\ \"ASSERT(x)=assert(x)\" \\ \"__cplusplus \"" # BOOST_PREVENT_MACRO_SUBSTITUTION, will not be replaced by , @@ -141,7 +137,7 @@ boostbook standalone on # Turns on index (or off). # Turns on (or off) index-verbose for diagnostic info (using /bin auto-index-verbose folders). - on + off pdf:off # on (or off) to use internally generated indexes. diff --git a/example/circular_buffer_bound_example.cpp b/example/circular_buffer_bound_example.cpp index 67316651..adcf0b01 100644 --- a/example/circular_buffer_bound_example.cpp +++ b/example/circular_buffer_bound_example.cpp @@ -121,10 +121,10 @@ class Consumer } }; -/*`Create a first-int first-out test of the bound_buffer. -Include a call to boost::progress_timer +/*`Create a first-in first-out test of the bounded_buffer. +Include a call to boost::timer::auto_cpu_timer -[@http://www.boost.org/doc/libs/1_53_0/libs/timer/doc/cpu_timers.html CPU timer] +[@boost:libs/timer/doc/cpu_timers.html CPU timer] */ template