2
0
mirror of https://github.com/boostorg/scope.git synced 2026-01-22 17:52:11 +00:00

13 Commits

Author SHA1 Message Date
Andrey Semashev
052f3ad41f Added missing return in get_random_bytes example in the docs. 2024-02-06 15:36:52 +03:00
Andrey Semashev
adf827b190 Docs improvements.
Removed Boost.ScopeExit from the table on the front page. Comparison with
Boost.ScopeExit is in a separate section, so this table duplicated it
to some degree and detracted focus from introducing Boost.Scope.

Added an example with unique_resource to the front page.

Other wording and example improvements.
2024-02-03 21:08:05 +03:00
Andrey Semashev
989676edc1 Write strings in CSV format in the examples in the docs.
This makes the final flush of the file stream actually necessary.
2024-01-30 11:40:30 +03:00
Andrey Semashev
7616f0b944 Added a new set of examples on the front page.
The new row of examples illustrate explicit deactivation of the scope
guards, as opposed to automatic failure detection via scope_fail.

Also improved the other examples to look more realistic.

Closes https://github.com/Lastique/scope/issues/13.
2024-01-30 03:32:54 +03:00
Andrey Semashev
ecb7d7c9cd Added comparison with Library Fundamentals TS components in the docs.
Closes https://github.com/Lastique/scope/issues/5.
2024-01-27 20:35:54 +03:00
Andrey Semashev
b0117a4b2e Renamed scope_final to defer_guard and BOOST_SCOPE_FINAL to BOOST_SCOPE_DEFER.
This follows the suggestion by Peter Dimov during the review.
2024-01-19 01:13:26 +03:00
Andrey Semashev
d9700c5d96 Added a link to P0052R10 in the docs. 2023-11-28 20:43:01 +03:00
Andrey Semashev
9778a1d3ea Added a separate section with comparison with Boost.ScopeExit 2023-10-15 00:44:27 +03:00
Andrey Semashev
ee3af04981 Renamed user's object method in the docs.
This avoids a potential confusion that the object in the examples
is a scope guard, as scope guards have the set_active method.

Closes https://github.com/Lastique/scope/issues/1.
2023-04-15 19:47:45 +03:00
Andrey Semashev
9d4e70a877 Added docs for scope_check and scope guard conditions. 2023-03-27 04:18:31 +03:00
Andrey Semashev
0e83fcbde7 Added support for file descriptors on Windows. 2023-03-20 00:21:06 +03:00
Andrey Semashev
04fec628ef Updating docs for unique_resource. 2023-03-12 20:56:55 +03:00
Andrey Semashev
e0fc6d6626 Added scope guards docs. 2023-03-12 00:43:47 +03:00