2
0
mirror of https://github.com/boostorg/scope.git synced 2026-01-26 07:02:09 +00:00
Andrey Semashev 46cd547bb4 Switched noexcept conditions checking the deleter to use is_nothrow_invocable.
Also hidden these conditions from docs since they now involve symbols
from namespace detail.

Added test for noexcept(reset()).

Closes https://github.com/Lastique/scope/issues/7.
2023-11-28 15:08:02 +03:00
2023-11-05 19:45:45 +03:00
2023-11-05 19:52:39 +03:00
2023-02-24 19:30:55 +03:00
2023-03-22 03:48:11 +03:00
2023-01-10 02:02:00 +03:00

Boost.Scope

Boost.Scope provides a number of scope guard utilities described in C++ Extensions for Library Fundamentals, Version 3, Section 3.3 Scope guard support [scopeguard]. The implementation also provides a few non-standard extensions.

This library is currently proposed for review and potential inclusion into Boost.

Directories

  • doc - QuickBook documentation sources
  • include - Interface headers of Boost.Scope
  • test - Boost.Scope unit tests

Installation

Using Conan

git clone https://github.com/Lastique/scope
conan create scope/conan --build missing

This will build a boost_scope package using your default profile and put it in the local Conan cache along with all direct and transitive dependencies. Since Scope only depends on a few header-only Boost libraries, you can save some time by requesting header-only Boost:

conan create scope/conan -o 'boost*:header_only=True' --build missing

Following one of those approaches you can use the package as usual. For example, using a conanfile.txt:

[requires]
boost_scope/1.0.0

Using vcpkg

git clone https://github.com/Lastique/scope
vcpkg install boost-scope --overlay-ports=scope/vcpkg/ports/boost-scope

This will install Scope and all the required Boost packages if they were not already installed.

More information

  • Read the documentation.
  • Report bugs. Be sure to mention Boost version, platform and compiler you're using. A small compilable code sample to reproduce the problem is always good as well.
  • Submit your patches as pull requests against develop branch. Note that by submitting patches you agree to license your modifications under the Boost Software License, Version 1.0.

License

Distributed under the Boost Software License, Version 1.0.

Description
Mirrored via gitea-mirror
Readme BSL-1.0 398 KiB
Languages
C++ 98.8%
CMake 1%
HTML 0.2%