2
0
mirror of https://github.com/boostorg/scope.git synced 2026-01-19 04:42:10 +00:00

179 Commits

Author SHA1 Message Date
Andrey Semashev
c979d5e11b Replaced macos-13 with macos-15 in GitHub Actions.
The macos-13 image is retired, macos-15 is now available.
2025-12-13 20:45:14 +03:00
Andrey Semashev
edb755c829 Updated regression matrix URLs in readme. boost-1.90.0 boost-1.90.0.beta1 2025-08-25 19:17:13 +03:00
Andrey Semashev
90646c6d67 Added a note about support for interruptible close in fd_deleter. 2025-08-08 20:21:24 +03:00
Andrey Semashev
e286819b43 Enabled C++14 tests on gcc 4.8 and 4.9. boost-1.89.0 2025-06-19 04:52:52 +03:00
Andrey Semashev
03252fd0af Silence -Wmissing-field-initializers gcc warning in unique_fd test. 2025-06-19 04:46:05 +03:00
Andrey Semashev
c96cfb6c18 Relax C++11 type_traits requirements.
This replaces the cxx11_hdr_type_traits requirement with a local
configure-time check for the presence of only those type traits
which are used in the library. This enables testing of gcc 4.8 and
4.9, which was previously silently skipped.
2025-06-19 04:37:57 +03:00
Andrey Semashev
3e1e0a98b2 Attach C++ requirements to the library target.
This exposes C++ requirements of Boost.Scope to the downstream users.
2025-06-19 04:25:20 +03:00
Andrey Semashev
3530ff1eae Added a missing include for std::declval. 2025-06-19 04:25:20 +03:00
Andrey Semashev
eb55e3eb05 Added a workaround in tests for MSVC 14.1 in C++17 mode.
The compiler ICEs when tests for unallocated_resource helper are
compiled. It isn't clear what upsets the compiler, but changing the
unique_resource constructor that is being called works around the
problem.

Since unallocated_resource is still usable, we're not disabling it
for this compiler and just update the test. Users encountering ICEs
will have to deal with them on their end (upgrading the compiler might
be one way to do it).

https://developercommunity.visualstudio.com/t/ICE-when-compiling-NTTP-related-BoostSc/10922599
2025-06-14 17:59:26 +03:00
Andrey Semashev
74ddc67b19 Added a link to MSVC bug re. name lookup in noexcept. 2025-06-14 01:49:49 +03:00
Andrey Semashev
9f0b6c1c45 Added a workaround for broken name loopup in MSVC 14.1.
The compiler is performing incorrect name lookup in the context of a
noexcept specifier of a friend function.
2025-06-14 00:27:27 +03:00
Andrey Semashev
51980018ab Added AppVeyor CI badges to readme. 2025-06-13 15:41:14 +03:00
Andrey Semashev
53cdfa3834 Added AppVeyor CI config.
AppVeyor CI can be useful to test older MSVC versions that are no longer
supported by GitHub Actions.
2025-06-13 15:41:14 +03:00
Andrey Semashev
dafc182bf1 Added new gcc and clang jobs to GitHub Actions. 2025-06-13 15:41:14 +03:00
Andrey Semashev
13ce05982a Use Azure mirrors of Ubuntu .deb repositories in containers.
This reduces the likelihood of spurious CI failures caused by DDoS filters
being triggered by massive numbers of concurrent CI jobs.
2025-06-13 15:41:14 +03:00
Andrey Semashev
df5fd8f135 Removed windows-2019 GitHub Actions jobs.
The windows-2019 image is deprecated and will soon be removed.
2025-06-13 01:54:07 +03:00
Andrey Semashev
b4099179dc Fixed links to fd_deleter.hpp and fd_resource_traits.hpp in docs. 2025-05-13 02:02:47 +03:00
Andrey Semashev
c1a41db7a6 Wording improvement in the docs. 2025-05-13 01:18:07 +03:00
Andrey Semashev
cf346ba9aa Removed usage of obsolete ubuntu-20.04 GHA image. 2025-04-19 18:37:28 +03:00
Andrey Semashev
68871a7295 Trim trailing spaces. 2025-04-13 14:45:58 +03:00
Andrey Semashev
650fac7419 Added compilers to GitHub Actions CI, removed macos-12 job.
Added newer gcc and clang versions to GitHub Actions CI, reduced usage
of external package repositories. Removed macos-12 job as the corresponding
image has been removed from GitHub Actions.
boost-1.88.0 boost-1.88.0.beta1
2024-12-15 23:48:08 +03:00
Andrey Semashev
03f3395fb0 Added CMake testing on Windows. boost-1.87.0 boost-1.87.0.beta1 2024-10-19 20:44:00 +03:00
René Ferdinand Rivera Morell
bc85d865f2 Add support for modular build structure. (#21)
* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Add missing import-search for cconfig/predef checks.

* Add requires-b2 check to top-level build file.

* Update dependencies.

* Bump B2 require to 5.2

* Remove repeated import-search.

* Move inter-lib dependencies to a project variable and into the build targets.

* Adjust doc build to avoid boost-root references.

* Update build deps.
2024-08-19 02:10:27 +03:00
Andrey Semashev
db963eab9c Fixed an example of using scope_exit with std::function in the docs.
Closes https://github.com/boostorg/scope/issues/20.
boost-1.86.0 boost-1.86.0.beta1
2024-07-03 23:17:20 +03:00
Andrey Semashev
eea343a918 Added macos-12 and 13 testing in addition to latest (which is 14). 2024-05-21 01:22:25 +03:00
Andrey Semashev
42a3456628 Use macos-latest image as macos-11 is being removed. 2024-05-21 01:06:58 +03:00
Andrey Semashev
7f730d3997 Use https for test matrix links. 2024-04-17 00:45:38 +03:00
Andrey Semashev
ef2a954303 Added CI/test/dependency badges. 2024-04-17 00:41:31 +03:00
Andrey Semashev
b24ee3d683 Updated link to library docs. 2024-04-17 00:30:30 +03:00
Andrey Semashev
8321450aca Improved docs for unallocated_resource.
Expanded on the requirements for resource types and values supported by
unallocated_resource.

Added a note in the INVALID_HANDLE_VALUE example that says it relies on
MSVC extension and other compilers may not accept it.
boost-1.85.0 boost-1.85.0.beta1
2024-03-12 15:12:10 +03:00
Andrey Semashev
1a1dcd8817 Added a test for unallocated_resource with INVALID_HANDLE_VALUE on Windows. 2024-03-12 14:25:42 +03:00
Andrey Semashev
d18cc5fde7 Mention _read for reading from fds on Windows. 2024-03-08 02:33:49 +03:00
Andrey Semashev
17023298dd Updated URLs in README.md. 2024-02-07 14:11:10 +03:00
Andrey Semashev
0da459f549 Updated changelog. 2024-02-07 14:02:57 +03:00
Andrey Semashev
db29667f84 Improved scope guard docs. 2024-02-07 13:52:25 +03:00
Andrey Semashev
d68ee383b0 Improved library description. 2024-02-07 02:08:51 +03:00
Andrey Semashev
3da27e413f Added library metadata. 2024-02-07 02:05:39 +03:00
Andrey Semashev
c8a05799c3 Corrected make_default return type in fd_resource_traits example.
Closes https://github.com/Lastique/scope/issues/18.
2024-02-06 20:50:25 +03:00
Andrey Semashev
052f3ad41f Added missing return in get_random_bytes example in the docs. 2024-02-06 15:36:52 +03:00
Andrey Semashev
3aa8d4fc00 Added gcc-13 CI job. 2024-02-06 00:33:22 +03:00
Andrey Semashev
622a37492d Updated C++23 flags for clang-17 in CI config. 2024-02-06 00:13:25 +03:00
Andrey Semashev
a0c5ebf58f Reduced CI job timeouts. 2024-02-05 23:58:59 +03:00
Andrey Semashev
9d15c42d82 Further tweaks for the CI scripts. 2024-02-05 18:33:49 +03:00
Andrey Semashev
ab1ed91983 Fix CI script for the case when the library is part of Boost tree. 2024-02-05 18:24:30 +03:00
Andrey Semashev
fc3caba128 Remove snapshot directory once not needed. 2024-02-05 17:51:49 +03:00
Andrey Semashev
56a3acc6e4 Replaced actions/checkout usage with manual download commands.
This fixes the deprecation warnings for actions/checkout@v3. actions/checkout@v4
is not functional because of the upstream bug:

https://github.com/actions/checkout/issues/1590
2024-02-05 16:13:16 +03:00
Andrey Semashev
d4d5d36255 Removed Conan and vcpkg projects.
Conan and vcpkg projects were added for the purpose of Boost review,
and now it's done. The library will be packaged as part of Boost.
2024-02-05 02:55:16 +03:00
Andrey Semashev
f4abde30e2 Move MSVC C4702 warning silencing past includes. 2024-02-05 00:47:51 +03:00
Andrey Semashev
0cfc01818c Disabled MSVC warning C4702: unreachable code.
This warning is triggered by tests that throw exceptions and then check
that the code that follows is not reached.
2024-02-05 00:35:50 +03:00
Andrey Semashev
183715b90f Disable warnings for auxiliary definitions on unique_fd test. 2024-02-05 00:19:09 +03:00