{"sha":"44adee7fdbdd93750db56ac0c290f9406c2dcbab","node_id":"C_kwDOAiB0YNoAKDQ0YWRlZTdmZGJkZDkzNzUwZGI1NmFjMGMyOTBmOTQwNmMyZGNiYWI","commit":{"author":{"name":"Sean Parent","email":"sean.parent@stlab.cc","date":"2025-09-23T22:49:55Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2025-09-23T22:49:55Z"},"message":"Working around permissive issue in MSVC (#578)\n\n* Working around permissive issue in MSVC\n\nfuture and forest would not compile with `\\permissive` in MSVC. Fixed those issues and did some clangd cleanup.\n\n* Update README with usage instructions.\n\n* Updated version for release.","tree":{"sha":"a50329023be8e6de03d3dcf3aa38e6328d3647b5","url":"https://api.github.com/repos/stlab/stlab/git/trees/a50329023be8e6de03d3dcf3aa38e6328d3647b5"},"url":"https://api.github.com/repos/stlab/stlab/git/commits/44adee7fdbdd93750db56ac0c290f9406c2dcbab","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJo0yQTCRC1aQ7uu5UhlAAAtXgQAAfg5o9FeOJ9OGzTHgo1LrOP\nJ3rn2lG+FmZTgQwKN4Y/L5wCEiimjihsxkM/8w7J9LaGV3zdCyQL5bTNZ4k2cGNb\nNijUBtycNTQ0vr56tX3BOEIavPY3cA18BTjvUaY9V8TjlUmiqZMaZUR0/SbqrNUc\nq4vASmw8akZeIcDtOVGXfAsrtcg+FqX4EWcPfJLso1xXja9VUMotBYmj2j5p+Z43\nVifcaBu0WB957CV0/C23QJm/gi8XhwLEU4Bki+m8BF/z3yVgJVqq29bvF+sspRu4\nwHKPTELpM/YlP+VfdXIL2um02Q8Dk9/Swg4yJ/FYH+fhWUiuk7qQ/6TpPs37emyP\n2nrvzpPRX9ZDasi2ujxh5wcJd1aB4IpN5srfd1YEb0qNgC/UsG3QWG8+cgmJWUZk\n8oGd/lUmiCwSnlNQUW5jqKlJL1QE1d1YIIVWqlnCqN0JPC9wxyBak4kFFn1OyWQo\nglWNKtpjm2UjVH7tmqP5Mw/A1ZreamFGm2AHMZlejLcFmCtJHEih4uJSUuzCEGc6\nln9t9YDPqgDXN09qf6me9m0vlEXodz7B6zjkfprVJfYDarVW0QpCX9XWFW7PiJLV\nRi3NIx39lcD2B5ckl0o5xabD8LXkexIrBI8fYgOvL9W5JnuZjnKDRZSQhOjV3P4T\n+rEhqDKKs/Pr/E92pThy\n=Ofmj\n-----END PGP SIGNATURE-----\n","payload":"tree a50329023be8e6de03d3dcf3aa38e6328d3647b5\nparent 71101e06f7d537ac9e43a860d656073ddeebb31a\nauthor Sean Parent <sean.parent@stlab.cc> 1758667795 -0700\ncommitter GitHub <noreply@github.com> 1758667795 -0700\n\nWorking around permissive issue in MSVC (#578)\n\n* Working around permissive issue in MSVC\n\nfuture and forest would not compile with `\\permissive` in MSVC. Fixed those issues and did some clangd cleanup.\n\n* Update README with usage instructions.\n\n* Updated version for release.\n","verified_at":"2025-09-23T22:49:56Z"}},"url":"https://api.github.com/repos/stlab/stlab/commits/44adee7fdbdd93750db56ac0c290f9406c2dcbab","html_url":"https://github.com/stlab/stlab/commit/44adee7fdbdd93750db56ac0c290f9406c2dcbab","comments_url":"https://api.github.com/repos/stlab/stlab/commits/44adee7fdbdd93750db56ac0c290f9406c2dcbab/comments","author":{"login":"sean-parent","id":2279724,"node_id":"MDQ6VXNlcjIyNzk3MjQ=","avatar_url":"https://avatars.githubusercontent.com/u/2279724?v=4","gravatar_id":"","url":"https://api.github.com/users/sean-parent","html_url":"https://github.com/sean-parent","followers_url":"https://api.github.com/users/sean-parent/followers","following_url":"https://api.github.com/users/sean-parent/following{/other_user}","gists_url":"https://api.github.com/users/sean-parent/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-parent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-parent/subscriptions","organizations_url":"https://api.github.com/users/sean-parent/orgs","repos_url":"https://api.github.com/users/sean-parent/repos","events_url":"https://api.github.com/users/sean-parent/events{/privacy}","received_events_url":"https://api.github.com/users/sean-parent/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"71101e06f7d537ac9e43a860d656073ddeebb31a","url":"https://api.github.com/repos/stlab/stlab/commits/71101e06f7d537ac9e43a860d656073ddeebb31a","html_url":"https://github.com/stlab/stlab/commit/71101e06f7d537ac9e43a860d656073ddeebb31a"}],"stats":{"total":116,"additions":70,"deletions":46},"files":[{"sha":"e6c106611c1c06cf3f6c4d6e02982069ef4e6b49","filename":".clang-tidy","status":"modified","additions":2,"deletions":1,"changes":3,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/.clang-tidy","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/.clang-tidy","contents_url":"https://api.github.com/repos/stlab/stlab/contents/.clang-tidy?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -1,5 +1,5 @@\n ExtraArgs:\n-  - \"std=c++17\"\n+  - \"-std=c++17\"\n Checks: >\n   cert-*,\n   performance-*,\n@@ -14,4 +14,5 @@ CheckOptions:\n       boost/test/.*;\n       __chrono/.*\n HeaderFilterRegex: \"^.*/include/stlab/.*$\"\n+ExcludeHeaderRegex: \"^.*/boost/.*$|^.*Program Files.*$\"\n # WarningsAsErrors: \"*\""},{"sha":"7bc27f908ee8091f89b036cf06e665300291e318","filename":".clangd","status":"removed","additions":0,"deletions":15,"changes":15,"blob_url":"https://github.com/stlab/stlab/blob/71101e06f7d537ac9e43a860d656073ddeebb31a/.clangd","raw_url":"https://github.com/stlab/stlab/raw/71101e06f7d537ac9e43a860d656073ddeebb31a/.clangd","contents_url":"https://api.github.com/repos/stlab/stlab/contents/.clangd?ref=71101e06f7d537ac9e43a860d656073ddeebb31a","patch":"@@ -1,15 +0,0 @@\n-CompileFlags:\n-  Add:\n-    - \"-Wall\"\n-    - \"-Wextra\"\n-  Remove:\n-    - \"-W*\"  # Remove all warning flags, we'll add our own above\n-\n-Diagnostics:\n-  UnusedIncludes: Strict\n-  MissingIncludes: Strict\n-  Includes:\n-    IgnoreHeader: [\"boost/test/.*\", \"__chrono/.*\"]\n-\n-Index:\n-  Background: Build"},{"sha":"4107575132d89d11d0766106d9dc647a90902bf3","filename":"CMakeLists.txt","status":"modified","additions":9,"deletions":9,"changes":18,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/CMakeLists.txt","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/CMakeLists.txt","contents_url":"https://api.github.com/repos/stlab/stlab/contents/CMakeLists.txt?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -1,6 +1,6 @@\n cmake_minimum_required(VERSION 3.23)\n \n-project(stlab VERSION 2.1.1 LANGUAGES CXX)\n+project(stlab VERSION 2.1.2 LANGUAGES CXX)\n \n # Create the main library target first\n add_library(stlab)\n@@ -24,10 +24,10 @@ target_link_libraries(stlab INTERFACE stlab::enum-ops)\n \n if(CMAKE_EXPORT_COMPILE_COMMANDS AND PROJECT_IS_TOP_LEVEL)\n   add_custom_target(clangd_compile_commands ALL\n-      COMMAND ${CMAKE_COMMAND} -E create_symlink\n-          ${CMAKE_BINARY_DIR}/compile_commands.json\n-          ${CMAKE_SOURCE_DIR}/compile_commands.json\n-      COMMENT \"Creating symlink to compile_commands.json for clangd\"\n+    COMMAND ${CMAKE_COMMAND} -E create_symlink\n+    ${CMAKE_BINARY_DIR}/compile_commands.json\n+    ${CMAKE_SOURCE_DIR}/compile_commands.json\n+    COMMENT \"Creating symlink to compile_commands.json for clangd\"\n   )\n endif()\n \n@@ -60,7 +60,7 @@ cmake_dependent_option(stlab.coverage\n \n stlab_check_disfunctional_coroutines(STLAB_DEFAULT_NO_STD_COROUTINES)\n option(STLAB_NO_STD_COROUTINES \"Suppress usage of standard coroutines. Useful for non-conforming compilers.\" ${STLAB_DEFAULT_NO_STD_COROUTINES})\n-if (STLAB_NO_STD_COROUTINES)\n+if(STLAB_NO_STD_COROUTINES)\n   set(STLAB_STD_COROUTINES 0)\n else()\n   set(STLAB_STD_COROUTINES 1)\n@@ -81,16 +81,16 @@ endif()\n # and eliminate the code below.\n #\n option(STLAB_MINIMAL_TASK_POOL \"Deprecated: Use STLAB_TASK_POOL_MAXIMUM=1.\" OFF)\n-if (STLAB_MINIMAL_TASK_POOL)\n+if(STLAB_MINIMAL_TASK_POOL)\n   message(WARNING \"STLAB_MINIMAL_TASK_POOL is deprecated. Use STLAB_TASK_POOL_MAXIMUM=1, instead.\")\n \n   # The deprecated STLAB_MINIMAL_TASK_POOL implied a pool size of 1.\n   # If STLAB_TASK_POOL_MAXIMUM is at its default of zero, make it 1.\n   # Otherwise, if it's been customized to something other than 1, that's logically invalid.\n   # Fail and direct them to the new option.\n-  if (STLAB_TASK_POOL_MAXIMUM EQUAL 0)\n+  if(STLAB_TASK_POOL_MAXIMUM EQUAL 0)\n     set(STLAB_TASK_POOL_MAXIMUM 1)\n-  elseif (STLAB_TASK_POOL_MAXIMUM GREATER 1)\n+  elseif(STLAB_TASK_POOL_MAXIMUM GREATER 1)\n     message(FATAL_ERROR \"STLAB_MINIMAL_TASK_POOL is deprecated and incompatible with STLAB_TASK_POOL_MAXIMUM>1. Use STLAB_TASK_POOL_MAXIMUM to set the desired pool size.\")\n   endif()\n endif()"},{"sha":"337fcc47796db49613138664d45d45fe2b388481","filename":"README.md","status":"modified","additions":26,"deletions":0,"changes":26,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/README.md","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/README.md","contents_url":"https://api.github.com/repos/stlab/stlab/contents/README.md?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -2,6 +2,16 @@\n \n ASL libraries will be migrated here in the `stlab` namespace, new libraries will be created here.\n \n+# Using the STLab Libraries\n+\n+The recommended approach to using the libraries is to use [CPM](https://github.com/cpm-cmake/CPM.cmake) and add the following to your `CMakeLists.txt`:\n+\n+```cmake\n+CPMAddPackage(\"gh:stlab/libraries@2.1.2\")\n+```\n+\n+(replace `2.1.2` with the [desired version](https://github.com/stlab/libraries/releases)).\n+\n ## Branch states\n \n - **`main`:** [![Build and Tests](https://github.com/stlab/libraries/actions/workflows/stlab.yml/badge.svg)](https://github.com/stlab/libraries/actions/workflows/stlab.yml)\n@@ -53,7 +63,9 @@ Run CMake in the root directory of this project, setting `./build` as your build\n basis of your command will be\n \n ```\n+\n cmake -S . -B ../BUILD -DCMAKE_BUILD_TYPE=# SEE BELOW\n+\n ```\n \n but there are other options you may need to append in order to be successful. Among them:\n@@ -76,40 +88,54 @@ We also suggest the installation of [Ninja](https://ninja-build.org/) and its us\n A typical invocation might look like this:\n \n ```\n+\n cmake -S . -B ../BUILD -GNinja -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF\n+\n ```\n \n If you organize the build directory into subdirectories you can support multiple configurations.\n \n ```\n+\n rm -rf ../builds/portable\n cmake -S . -B ../builds/portable -GXcode -DCMAKE_CXX_STANDARD=17 -DBUILD_TESTING=ON -DSTLAB_TASK_SYSTEM=portable -DCMAKE_OSX_DEPLOYMENT_TARGET=macosx14.4\n+\n ```\n \n ### Build\n \n If your configuration command was successful, go to your build directory (`cd ../BUILD`) and invoke:\n \n ```\n+\n cmake --build .\n+\n ```\n \n ## Testing\n \n Running the tests in the `BUILD` directory is as simple as invoking\n \n ```\n+\n ctest -C Debug\n+\n ```\n \n or\n \n ```\n+\n ctest -C Release\n+\n ```\n \n depending on which configuration (`CMAKE_BUILD_TYPE) you choose to build.\n \n ## Generating Documentation\n \n For generating the documentation, see the [README.md](docs/README.md) in the `docs` directory.\n+\n+```\n+\n+```"},{"sha":"aeb2a283a331b0ddc241203f129ec4b2df2c4cec","filename":"include/stlab/algorithm/reverse.hpp","status":"modified","additions":3,"deletions":0,"changes":3,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Falgorithm%2Freverse.hpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Falgorithm%2Freverse.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Falgorithm%2Freverse.hpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -11,12 +11,14 @@\n #include <algorithm>\n #include <utility>\n \n+#include <stlab/config.hpp>\n #include <stlab/iterator/concepts.hpp>\n #include <stlab/iterator/set_next.hpp>\n \n /**************************************************************************************************/\n \n namespace stlab {\n+inline namespace STLAB_VERSION_NAMESPACE() {\n \n /**************************************************************************************************/\n \n@@ -111,6 +113,7 @@ auto reverse_until(I f, I m, I l) -> std::pair<I, I> {\n \n /**************************************************************************************************/\n \n+} // namespace STLAB_VERSION_NAMESPACE()\n } // namespace stlab\n \n /**************************************************************************************************/"},{"sha":"8780d039328519661dc5749a6a65f78398331582","filename":"include/stlab/concurrency/await.hpp","status":"modified","additions":0,"deletions":2,"changes":2,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Fawait.hpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Fawait.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fconcurrency%2Fawait.hpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -15,8 +15,6 @@\n #include <condition_variable>\n #include <exception>\n #include <mutex>\n-#include <optional>\n-#include <type_traits>\n #include <utility>\n \n #include <stlab/concurrency/future.hpp>"},{"sha":"bb7ea657c457fc0b229c926821284b38287b1c4c","filename":"include/stlab/concurrency/future.hpp","status":"modified","additions":2,"deletions":2,"changes":4,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Ffuture.hpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Ffuture.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fconcurrency%2Ffuture.hpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -993,12 +993,12 @@ auto package(E executor, F&& f)\n                     try {\n                         _hold = std::move(r).recover(\n                             immediate_executor,\n-                            [_p = std::move(promise)](auto&& f) mutable noexcept {\n+                            [_p = std::move(promise)](result_t&& f) mutable noexcept {\n                                 if (auto e = f.exception()) {\n                                     std::move(_p).set_exception(std::move(e));\n                                 } else {\n                                     std::move(_p).set_value(invoke_void_to_monostate_result(\n-                                        [&] { return std::forward<decltype(f)>(f).get_ready(); }));\n+                                        [&] { return std::move(f).get_ready(); }));\n                                 }\n                             });\n                     } catch (...) {"},{"sha":"73654617b5d9d9bfc23b97fdd7b199d0230a9a9d","filename":"include/stlab/concurrency/main_executor.hpp","status":"modified","additions":4,"deletions":7,"changes":11,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Fmain_executor.hpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Fmain_executor.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fconcurrency%2Fmain_executor.hpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -9,9 +9,6 @@\n #ifndef STLAB_CONCURRENCY_MAIN_EXECUTOR_HPP\n #define STLAB_CONCURRENCY_MAIN_EXECUTOR_HPP\n \n-#include <type_traits>\n-#include <utility>\n-\n #include <stlab/config.hpp>\n \n #if STLAB_MAIN_EXECUTOR(QT5) || STLAB_MAIN_EXECUTOR(QT6)\n@@ -121,17 +118,17 @@ struct main_executor_type {\n \n         /*\n           `emscripten_async_run_in_main_runtime_thread()` schedules a function to run on the main\n-           JS thread, however, the code can be executed at any POSIX thread cancelation point if\n+           JS thread, however, the code can be executed at any POSIX thread cancellation point if\n            wasm code is executing on the JS main thread.\n-           Executing the code from a POSIX thread cancelation point can cause problems, including\n+           Executing the code from a POSIX thread cancellation point can cause problems, including\n            deadlocks and data corruption. Consider:\n            ```\n                mutex.lock();   // <-- If reentered, would deadlock here\n-               new T;          // <-- POSIX cancelation point, could reenter\n+               new T;          // <-- POSIX cancellation point, could reenter\n            ```\n            The call to `emscripten_async_call()` bounces the call to execute as part of the main\n            run-loop on the current (main) thread. This avoids nasty reentrancy issues if executed\n-           from a POSIX thread cancelation point.\n+           from a POSIX thread cancellation point.\n        */\n \n         emscripten_async_run_in_main_runtime_thread("},{"sha":"f7da03dad84ee357d95d5352dbaca768f475dbce","filename":"include/stlab/concurrency/serial_queue.hpp","status":"modified","additions":0,"deletions":1,"changes":1,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Fserial_queue.hpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Fserial_queue.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fconcurrency%2Fserial_queue.hpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -16,7 +16,6 @@\n #include <cstdint>\n #include <deque>\n #include <mutex>\n-#include <tuple>\n #include <type_traits>\n #include <utility>\n "},{"sha":"b049420b37b3776479085861d7d93a3faad7dc61","filename":"include/stlab/concurrency/system_timer.hpp","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Fsystem_timer.hpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fconcurrency%2Fsystem_timer.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fconcurrency%2Fsystem_timer.hpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -11,7 +11,6 @@\n \n /**************************************************************************************************/\n \n-#include <atomic>\n #include <cassert>\n #include <stlab/config.hpp>\n #include <stlab/pre_exit.hpp>\n@@ -20,6 +19,7 @@\n #include <type_traits>\n \n #if STLAB_TASK_SYSTEM(LIBDISPATCH)\n+#include <atomic>\n #include <dispatch/dispatch.h>\n #include <stlab/concurrency/default_executor.hpp>\n #elif STLAB_TASK_SYSTEM(WINDOWS)"},{"sha":"1474226b2570bc3ecaf5f04da5ad5ac623ef37d3","filename":"include/stlab/forest.hpp","status":"modified","additions":5,"deletions":3,"changes":8,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fforest.hpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fforest.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fforest.hpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -15,16 +15,17 @@\n #include <cassert>\n #include <cstddef>\n #include <cstdint>\n-#include <functional>\n #include <iterator>\n+#include <utility>\n \n #include <stlab/algorithm/reverse.hpp>\n+#include <stlab/config.hpp>\n #include <stlab/iterator/set_next.hpp>\n-#include <utility>\n \n /**************************************************************************************************/\n \n namespace stlab {\n+inline namespace STLAB_VERSION_NAMESPACE() {\n \n /**************************************************************************************************/\n \n@@ -989,7 +990,7 @@ template <class T>\n auto forest<T>::erase(const iterator& position) -> iterator {\n     /*\n         NOTE (sparent) : After the first call to set_next() the invariants of the forest are\n-        violated and we can't determing leading/trailing if we navigate from the affected node.\n+        violated and we can't determine leading/trailing if we navigate from the affected node.\n         So we gather all the iterators up front then do the set_next calls.\n     */\n \n@@ -1246,6 +1247,7 @@ auto preorder_range(const R& x) {\n \n /**************************************************************************************************/\n \n+} // namespace STLAB_VERSION_NAMESPACE()\n } // namespace stlab\n \n /**************************************************************************************************/"},{"sha":"181febc7ecbab996c63070823fe749b436bc69ec","filename":"include/stlab/iterator/set_next.hpp","status":"modified","additions":8,"deletions":3,"changes":11,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fiterator%2Fset_next.hpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/include%2Fstlab%2Fiterator%2Fset_next.hpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/include%2Fstlab%2Fiterator%2Fset_next.hpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -9,11 +9,14 @@\n #define STLAB_ITERATOR_SET_NEXT_HPP\n \n #include <iterator>\n-#include <utility>\n+\n+#include <stlab/config.hpp>\n \n /**************************************************************************************************/\n \n-namespace stlab::unsafe {\n+namespace stlab {\n+inline namespace STLAB_VERSION_NAMESPACE() {\n+namespace unsafe {\n \n /**************************************************************************************************/\n \n@@ -48,7 +51,9 @@ inline void skip_node(I location) {\n \n /**************************************************************************************************/\n \n-} // namespace stlab::unsafe\n+} // namespace unsafe\n+} // namespace STLAB_VERSION_NAMESPACE()\n+} // namespace stlab\n \n /**************************************************************************************************/\n "},{"sha":"17ba1a1338fb68ec310cb23194bbb4eba58c37a4","filename":"test/CMakeLists.txt","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/test%2FCMakeLists.txt","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/test%2FCMakeLists.txt","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2FCMakeLists.txt?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -26,7 +26,7 @@ CPMAddPackage(\n )\n \n # Mark the boost header files as external for MSVC\n-if (MSVC)\n+if(MSVC)\n   get_target_property(Boost_INCLUDE_DIR Boost::unit_test_framework INTERFACE_INCLUDE_DIRECTORIES)\n   add_compile_options(/external:I${Boost_INCLUDE_DIR} /external:W0)\n endif()"},{"sha":"a8d8887f6f33e4f06fb9f6ac869f8a483a74b4cd","filename":"test/future_tests.cpp","status":"modified","additions":9,"deletions":1,"changes":10,"blob_url":"https://github.com/stlab/stlab/blob/44adee7fdbdd93750db56ac0c290f9406c2dcbab/test%2Ffuture_tests.cpp","raw_url":"https://github.com/stlab/stlab/raw/44adee7fdbdd93750db56ac0c290f9406c2dcbab/test%2Ffuture_tests.cpp","contents_url":"https://api.github.com/repos/stlab/stlab/contents/test%2Ffuture_tests.cpp?ref=44adee7fdbdd93750db56ac0c290f9406c2dcbab","patch":"@@ -517,7 +517,7 @@ BOOST_AUTO_TEST_CASE(future_wait_void_error_case) {\n }\n \n BOOST_AUTO_TEST_CASE(future_wait_void_error_case_with_timeout) {\n-    BOOST_TEST_MESSAGE(\"future wait with void error case with timout\");\n+    BOOST_TEST_MESSAGE(\"future wait with void error case with timeout\");\n \n     auto answer = [] { throw test_exception(\"failure\"); };\n \n@@ -785,3 +785,11 @@ BOOST_AUTO_TEST_CASE(future_reduction_executor) {\n     BOOST_REQUIRE_EQUAL(0u, inner_count);\n     BOOST_REQUIRE_EQUAL(5, *f1.get_try());\n }\n+\n+BOOST_AUTO_TEST_CASE(future_await_regression) {\n+    future<unique_ptr<int>> f = async(default_executor, [] { return std::make_unique<int>(42); });\n+    f = std::move(f).then([](unique_ptr<int> p) {\n+        if (p) ++(*p);\n+        return make_ready_future(std::move(p), default_executor);\n+    });\n+}"}]}