Gennaro Prota
7aca0a80fd
Remove an erroneous comment
2025-10-15 11:41:43 +02:00
Gennaro Prota
7a00f3c051
No longer condition the use of (unsigned) long long on BOOST_HAS_LONG_LONG
...
Reason: We require C++11.
2025-10-15 11:41:43 +02:00
Gennaro Prota
cd68ee4632
Remove two useless comments
2025-10-15 11:41:43 +02:00
Gennaro Prota
f637b5bab1
Remove some special test code for the Dinkumware stdlib of MSVC 6
...
Reason: MSVC 6 is no longer supported.
2025-10-15 11:41:43 +02:00
Gennaro Prota
57bdff3f12
Remove an erroneous comment
2025-10-15 11:41:43 +02:00
Gennaro Prota
5a25945ed7
Remove superfluous parentheses in a return statement
2025-10-15 11:41:43 +02:00
Gennaro Prota
7755190288
Improve the tests of operator!=()
2025-10-15 11:41:43 +02:00
Gennaro Prota
b52e7cd97b
Improve the flip() tests
2025-10-15 11:41:43 +02:00
Gennaro Prota
bf2e39ec65
Don't assume the underlying container is contiguous in operator<<=() and operator>>=()
...
Reason: This is no longer guaranteed. See "Allow choosing the underlying
container type".
2025-10-15 11:41:43 +02:00
Gennaro Prota
fd0c440888
Delete the copy constructor and the copy assignment operator of bit_appender
...
Reason: That's better than declaring them as private and leaving them
undefined.
2025-10-15 11:41:43 +02:00
Gennaro Prota
410068c17d
Add constexpr support when compiling as C++20 or later
...
This support is only added for C++20 or later, as it would be too
limited in earlier standards.
2025-10-15 11:41:43 +02:00
Gennaro Prota
d8131f641c
Add a \param paragraph to the documentation of find_first_off( size_type )
...
The meaning of the parameter was clear from the \return paragraph, but,
without an explicit \param paragraph, MrDocs would show the
documentation of size_type as documentation of the parameter.
2025-10-15 11:41:43 +02:00
Gennaro Prota
fc47959cd4
Remove an unused template parameter from allocator_type_extractor_impl
2025-10-15 11:41:43 +02:00
Gennaro Prota
8387c4f494
Use \post for postcondition paragraphs in the Javadoc comments
...
Reason: More specific command (also, consistency, as we use \pre for
preconditions).
2025-10-15 11:41:43 +02:00
Gennaro Prota
5f62214ad5
Make push_back() more efficient
2025-10-15 11:41:43 +02:00
Gennaro Prota
3ff4a319d9
Work around Clang 10, 11, 12 not providing std::bidirectional_iterator
2025-10-15 11:41:43 +02:00
Gennaro Prota
2cff357a91
Update the description of bit_appender
...
Reason: dynamic_bitset does have an append_at_right(), now; it's called
push_front().
2025-10-15 11:41:43 +02:00
Gennaro Prota
ff1a0fda26
Assert that both the underlying container and dynamic_bitset provide at least bidirectional iterators
...
The assert uses C++20 concepts, so it is only performed in C++20 or
later.
Note that, while evaluating the concept for the second assert, MSVC 2022
complained a constructor of class reference was private, therefore we
added a friend declaration.
2025-10-15 11:41:43 +02:00
Gennaro Prota
134fab263b
Add a missing #include directive
2025-10-15 11:41:43 +02:00
Gennaro Prota
68c5913983
Mark pre-C++11 compilers as unusable for the regression tests
2025-10-15 11:41:43 +02:00
Gennaro Prota
882e0e0665
Remove two superfluous #include directives
...
This fixes/completes "Remove other workarounds for obsolete compilers".
2025-10-15 11:41:43 +02:00
Gennaro Prota
843b6c3dd0
Fix two typos in two comments
2025-10-15 11:41:43 +02:00
Gennaro Prota
bbb2fa90df
Update a comment about library issue 303
2025-10-15 11:41:43 +02:00
Gennaro Prota
15a73050cb
Re-apply Clang-Format
...
We should really automate this. But, for the moment...
2025-10-15 11:41:43 +02:00
Gennaro Prota
ac5df5566a
Add two missing const qualifiers
2025-10-15 11:41:43 +02:00
Gennaro Prota
9bba7af0b5
Avoid a redundant first != last check for append< BlockInputIterator >() with input iterators
...
Note that this also avoids a BOOST_ASSERT().
2025-10-15 11:41:43 +02:00
Gennaro Prota
4cf19a2b0a
Fix append< BlockInputIterator >() for input iterators
...
We were using `AllocatorOrContainer` as if it were still guaranteed to
be an allocator type. Unfortunately, the append() tests didn't exercise
input iterators, so this went unnoticed. I've now added tests.
2025-10-15 11:41:43 +02:00
Gennaro Prota
a740393527
Remove extra parentheses in the implementation of operator<()
...
Reason: Consistency.
2025-10-15 11:41:43 +02:00
Gennaro Prota
7ae245eabf
Add missing spaces in a comment
...
Reason: Consistency.
2025-10-15 11:41:43 +02:00
Gennaro Prota
9d604eba5a
Simplify the implementation of all()
2025-10-15 11:41:43 +02:00
Gennaro Prota
fae55af67d
Remove a reference to a removed comment
...
The referenced comment was removed when porting the documentation to
MrDocs. It advised against using the constructor from basic_string, but,
perhaps, that advice was a bit too strong (constructing from strings is
handy, and probably faster than inputting from a stringstream).
2025-10-15 11:41:43 +02:00
Gennaro Prota
81011d8161
Add trailing periods to the \pre paragraphs that missed them
...
Reason: Consistency.
2025-10-15 11:41:43 +02:00
Gennaro Prota
51db99cf32
Fix a few documentation glitches
2025-10-15 11:41:43 +02:00
Gennaro Prota
ac6b01140d
Make the three "from string" constructors explicit
...
Making them non-explicit was an oversight.
2025-10-15 11:41:43 +02:00
Gennaro Prota
26dac17a4a
Settle the documentation of the iterators
...
We choose to hide the iterator type definitions and just document their
category, which is enough.
2025-10-15 11:41:43 +02:00
Gennaro Prota
d3c4e2751a
Improve the encapsulation of bit_iterator_base
2025-10-15 11:41:43 +02:00
Gennaro Prota
c58487c26a
Fix an error in the documentation of operator==()
2025-10-15 11:41:43 +02:00
Gennaro Prota
6f3634aa4b
Remove the dependency on core/allocator_access.hpp
2025-10-15 11:41:43 +02:00
Gennaro Prota
d8365ee015
Make the max_size() tests a bit more meaningful
2025-10-15 11:41:43 +02:00
Gennaro Prota
4ca26518ec
Add a missing comment
2025-10-15 11:41:43 +02:00
Gennaro Prota
8f07dd356a
Add push_front() and pop_front()
2025-10-15 11:41:43 +02:00
Gennaro Prota
efd4d41f60
No longer use BOOST_NO_CXX11_RVALUE_REFERENCES
...
Reason: We require decent C++11 support anyway.
2025-10-15 11:41:43 +02:00
Gennaro Prota
30ee0f68b5
Add two blank lines
...
Reason: Readability, consistency.
2025-10-15 11:41:43 +02:00
Gennaro Prota
eba192e3a3
Make the descriptions of the preconditions of the three "from string" constructors more precise
2025-10-15 11:41:43 +02:00
Gennaro Prota
bb489c186a
Add a constructor from basic_string_view in C++17 or later
...
Note that we have MrDocs compile as C++17 again (a change that we had
reverted).
2025-10-15 11:41:43 +02:00
Gennaro Prota
0177f4adfa
Add a constructor from const CharT * (pointer to C-style string)
...
This is in preparation of the next commit, which will add a constructor
from std::basic_string_view (otherwise, construction from a C-style
string would be ambiguous between the basic_string_view and the
basic_string constructor).
Note that, rather than duplicating code to test the new member, we
changed many constructions in dyn_bitset_unit_tests1.cpp to use const
char *, instead of std::string. (The constructor from std::basic_string
is tested separately anyway.)
2025-10-15 11:41:43 +02:00
Gennaro Prota
079cff781d
Don't test for Tr::eq( c, one ) twice in init_from_string()
2025-10-15 11:41:43 +02:00
Gennaro Prota
e00d9b30ae
No longer use boost::move()
...
Reason: We require C++11 now, so we can use std::move().
2025-10-15 11:41:43 +02:00
Gennaro Prota
ae9703b119
Actually test the move constructor in the move constructor tests
...
We were testing the *copy* constructor, instead.
2025-10-15 11:41:43 +02:00
Gennaro Prota
3ccf097dc1
Replace a #include of a deprecated include file
2025-10-15 11:41:43 +02:00