2
0
mirror of https://github.com/boostorg/scope.git synced 2026-01-19 16:52:08 +00:00
Andrey Semashev 2cd37e97c9 Remove forwarding res to is_allocated on unique_resource_data construction.
It is possible that the resource source will become moved-from after the
call to is_allocated, and that moved-from state will then be used to
initialize the resource in the resource_holder. To avoid this, don't
forward the resource source to is_allocated.

Fixes https://github.com/Lastique/scope/issues/10.
2023-12-01 19:33:21 +03:00
2023-11-05 19:45:45 +03:00
2023-11-30 18:56:39 +03:00
2023-11-05 19:52:39 +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 396 KiB
Languages
C++ 98.8%
CMake 1%
HTML 0.2%