2
0
mirror of https://github.com/boostorg/utility.git synced 2026-01-19 04:42:16 +00:00
Commit Graph

1236 Commits

Author SHA1 Message Date
Andrey Semashev
eb721609af Fix compilation with MSVC 14.3 in C++20 mode. boost-1.83.0 2023-07-14 02:22:09 +03:00
Andrey Semashev
b32d95a887 Add clang-16 CI jobs, switch to clang-15 from stock Ubuntu repos. boost-1.83.0.beta1 2023-06-05 03:26:52 +03:00
Andrey Semashev
656b5397c5 Restored docs removed by 703a4bf752.
Some of the HTML docs in the root directory were not converted to QuickBook
by 703a4bf752 and were incorrectly removed.
These docs are referenced by other libraries' docs, so restoring these pages.
boost-1.82.0
2023-03-15 12:20:52 +03:00
Andrey Semashev
65b40cbf99 Fixed incorrect docs redirects. 2023-03-15 12:14:41 +03:00
Andrey Semashev
3aa25c9dd7 Use depinst.py to install dependencies in AppVeyor CI. boost-1.82.0.beta1 boost-1.81.0 2022-11-17 23:47:46 +03:00
Andrey Semashev
46a785e32d Updated to GHA checkout@v3 to avoid deprecation warnings. boost-1.81.0.beta1 2022-10-18 17:59:59 +03:00
Andrey Semashev
a1231d1ff4 GitHub Actions config update.
- Added gcc-12 and clang-13 through 15 jobs.
- Added C++23 testing for gcc and clang on Linux.
- Updated clang version for UBSAN job.
- Updated Ubuntu version for clang jobs to avoid having to use external APT
  repository.
- Updated python package installation for compatibility with Ubuntu 22.04.
2022-09-10 02:09:54 +03:00
Andrey Semashev
3fe40554df Switched gcc-9 to ubuntu-20.04 GHA CI image. 2022-08-14 17:56:22 +03:00
Andrey Semashev
c869f8a9fa Replaced ubuntu-18.04 GHA CI images with containers.
Also use ubuntu-latest image for jobs that are running in a container.
2022-08-14 14:20:34 +03:00
Andrey Semashev
5d39709ef0 Switch to macos-11 GHA image as macos-10.15 is deprecated. 2022-08-12 16:05:19 +03:00
Andrey Semashev
028a90b29d Merge pull request #98 from boostorg/feature/string_view_remove_prefix_suffix_precondition
string_view: Change string_view::remove_prefix/suffix preconditions to use asserts
boost-1.80.0
2022-07-06 03:14:43 +03:00
Andrey Semashev
581654e408 Use assert in string_view::remove_prefix/suffix to enforce preconditions.
This is in line with std::string_view::remove_prefix/suffix definition, where
calling the method with n > size() is UB. We're keeping the check to clamp
n to size() for now for backward compatibility so that it can be eventually
removed.

Closes https://github.com/boostorg/utility/issues/92.
2022-07-05 23:53:47 +03:00
Andrey Semashev
06548cf5fa Added VS2022 job and C++20 and C++latest jobs to AppVeyor CI. boost-1.80.0.beta1 2022-06-06 03:14:01 +03:00
Andrey Semashev
932973fe39 Merge pull request #99 from boostorg/feature/string_view_contains
string_view: Add string_view::contains methods
2022-05-31 11:53:30 +03:00
Andrey Semashev
c63d36cf5b Added string_view::contains methods.
These methods were added in C++23.

Also updated string_view/ref tests:

- Added tests for string_view::contains.
- Added missing includes.
- Added missing std:: qualification.
- Removed tabs.
- Fixed misleading indentation (fixes gcc warnings).
- Fixed decrementing pointer before beginning of the string.

Closes https://github.com/boostorg/utility/issues/93.
2022-05-04 00:32:30 +03:00
Andrey Semashev
0106ffda5f Added string_view/ref::substr overloads taking no arguments.
This effectively adds support for pos=0 default argument value.
The separate overload is better as it avoids instantiating std::min,
boost::throw_exception and removes std::out_of_range construction, which
potentially reduces code size, while maintaining the same behavior.

Fixes https://github.com/boostorg/utility/issues/96.
2022-05-03 00:46:03 +03:00
Andrey Semashev
0c1d01d30a Removed noexcept from string_view::compare that may throw.
One overload of string_view::compare calls substr internally,
which may throw. This makes compare potentially throwing.

Fixes https://github.com/boostorg/utility/issues/94.
2022-05-03 00:42:20 +03:00
Andrey Semashev
7ac95c156c Fixed string_view/ref::max_size() returning incorrect value.
Fixes https://github.com/boostorg/utility/issues/91.
2022-05-03 00:38:15 +03:00
Andrey Semashev
eb29d71245 Corrected argument type in string_view/ref::at(). 2022-05-03 00:23:10 +03:00
Andrey Semashev
fe417f6237 Merge pull request #83 from sdarwin/meta
Update metadata
2022-05-03 00:13:23 +03:00
sdarwin
d5c33889b9 Update metadata 2022-05-02 13:53:04 -05:00
Andrey Semashev
11cff46019 Merge pull request #90 from fanquake/remove_boost_swap
refactor: use core/swap over deprecated swap header
2022-04-29 18:26:16 +03:00
fanquake
f11a56c2a7 refactor: use core/swap over deprecated swap header
In boost/swap.hpp:
```cpp
// The header file at this path is deprecated;
// use boost/core/swap.hpp instead.

```
2022-04-29 16:08:20 +01:00
Andrey Semashev
69f6588d7c Updated comment. boost-1.79.0 boost-1.79.0.beta1 2022-01-17 17:53:42 +03:00
Andrey Semashev
6950023bca Added a link to the ticket with discussion re. MSVC warning 4913. 2022-01-17 17:49:37 +03:00
Andrey Semashev
c3aab6a184 Use #ifdef to test for BOOST_MSVC. 2022-01-17 17:42:45 +03:00
Andrey Semashev
7717dac7bc Merge pull request #89 from Kojoley/patch-1
result_of_callable_class: suppress MSVC C4512
2022-01-17 17:29:33 +03:00
Nikita Kniazev
63aadf3f0f result_of_callable_class: suppress MSVC C4512
`result_of_callable_class` derives from a user provided type which might not be eligible for an implicit assignment operator causing an annoying warning
2022-01-16 22:34:34 +03:00
Andrey Semashev
0feb28b467 Merge pull request #88 from alandefreitas/boost_rel_paths
Adjust `@boost` relative paths
2021-12-28 23:38:13 +03:00
alandefreitas
78f1b38930 Adjust @boost relative paths 2021-12-28 15:24:39 -03:00
Andrey Semashev
e6edd4eb91 Minor formatting improvement. 2021-12-09 15:21:20 +03:00
Andrey Semashev
9d1284ef6d Use paths relative to the point of execution in doxygen rules.
This partly re-applies 5ae025b56a with the
following changes:

- Use path-constant to deduce the path relative to the point of execution
  rather than the Jamfile.
- Use that path only to list source files to be passed to Doxygen.
- Keep the project rule, but remove the duplicate requirements that are
  explicitly specified in standalone_main.

Hopefully, this should work around the problem of Reference generation
in the official docs.
2021-12-09 01:26:44 +03:00
Andrey Semashev
aa0ccfa65e Revert "Use path-constant in Jamfile"
This reverts commit 5ae025b56a.

Reason for revert: This breaks local generation of docs due to broken
links to css and images.
2021-12-09 00:02:37 +03:00
Andrey Semashev
c21d2818c7 Merge pull request #86 from alandefreitas/reference_glob
Use path-constant in Jamfile
2021-12-08 23:57:03 +03:00
Alan de Freitas
5ae025b56a Use path-constant in Jamfile 2021-12-08 17:53:12 -03:00
Glen Fernandes
f3f7c3c041 Merge pull request #85 from alandefreitas/reference_glob
Adjust doxygen relative paths
2021-12-08 10:56:04 -05:00
Alan de Freitas
bdc983b804 Adjust doxygen relative paths 2021-12-08 12:53:59 -03:00
Andrey Semashev
a1583e3072 Updated a couple C++ standard references. 2021-12-08 16:27:46 +03:00
Andrey Semashev
30caa722c1 Nonessential docs formatting. 2021-12-08 16:18:56 +03:00
Andrey Semashev
96169c9fc6 Added a link to the page describing EBO. 2021-12-08 16:15:48 +03:00
Andrey Semashev
b6119df27f Added links to a page describing POD. 2021-12-08 16:12:15 +03:00
Andrey Semashev
9941e831bb Updated references to C++ standard to C++11, added character escaping. 2021-12-08 16:08:36 +03:00
Andrey Semashev
a8cdbe516d Fixed a typo, added character escaping in docs. 2021-12-08 16:07:14 +03:00
Andrey Semashev
485a160dde Updated docs formatting. 2021-12-08 15:17:19 +03:00
Andrey Semashev
2b0441e95f Merge pull request #84 from Kojoley/patch-1
Fix extra tokens after #endif
boost-1.78.0
2021-11-22 17:26:16 +03:00
Nikita Kniazev
de106bf696 Fix extra tokens after #endif
Regression from #79
2021-11-22 17:17:57 +03:00
Andrey Semashev
b9a91970be Adjusted code formatting. 2021-11-16 17:28:15 +03:00
Andrey Semashev
73bccf50db Moved auto-generated files to a separate subdirectory. 2021-11-16 17:23:51 +03:00
Andrey Semashev
f7c17df050 Adjusted code formatting. 2021-11-16 17:23:51 +03:00
Andrey Semashev
51104850f6 Fixed web URL for the Boost.Utility docs.
Also adjusted formatting, removed unnecessary escaping and glob calls.
2021-11-16 17:23:29 +03:00