diff --git a/ports/asiochan/fix-10.patch b/ports/asiochan/fix-10.patch new file mode 100644 index 00000000000000..a6a703230c5b12 --- /dev/null +++ b/ports/asiochan/fix-10.patch @@ -0,0 +1,16 @@ +diff --git a/include/asiochan/channel.hpp b/include/asiochan/channel.hpp +index 4ffd88c..1af7547 100644 +--- a/include/asiochan/channel.hpp ++++ b/include/asiochan/channel.hpp +@@ -55,6 +55,11 @@ namespace asiochan + return *shared_state_; + } + ++ [[nodiscard]] auto shared_state() const noexcept -> const shared_state_type& ++ { ++ return *shared_state_; ++ } ++ + [[nodiscard]] friend auto operator==( + channel_base const& lhs, + channel_base const& rhs) noexcept -> bool diff --git a/ports/asiochan/portfile.cmake b/ports/asiochan/portfile.cmake index 875688e084342f..115dd03a8a456c 100644 --- a/ports/asiochan/portfile.cmake +++ b/ports/asiochan/portfile.cmake @@ -4,6 +4,8 @@ vcpkg_from_github( REF 837d7eb78ca9796af800ca3cd91ce0a8fe297785 SHA512 58e1e3291dc980ed59b0bc1fdcaa35db007e0044f4cbd352917caefa2d30b0c76a3db180091c1895867a3d026ce69f3a82b33dde3970cba5bef596620a2b20f8 HEAD_REF master + PATCHES + fix-10.patch ) file(COPY "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}") diff --git a/ports/asiochan/vcpkg.json b/ports/asiochan/vcpkg.json index 6dd3109bac5cff..0baca52faaff23 100644 --- a/ports/asiochan/vcpkg.json +++ b/ports/asiochan/vcpkg.json @@ -1,6 +1,7 @@ { "name": "asiochan", "version-date": "2022-11-25", + "port-version": 1, "description": "C++20 coroutine channels for ASIO", "homepage": "https://github.com/MiSo1289/asiochan", "license": "MIT" diff --git a/versions/a-/asiochan.json b/versions/a-/asiochan.json index 5e14cd8b27ba4f..06f2ffe0ff4208 100644 --- a/versions/a-/asiochan.json +++ b/versions/a-/asiochan.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "4f50cae4125b9c7d28002560aa2b7a16f8d7baa8", + "version-date": "2022-11-25", + "port-version": 1 + }, { "git-tree": "857feb5fd868cdae02e6bb9d6252174a9a39cb61", "version-date": "2022-11-25", diff --git a/versions/baseline.json b/versions/baseline.json index 5af33a813e45ac..e05332bbedc495 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -262,7 +262,7 @@ }, "asiochan": { "baseline": "2022-11-25", - "port-version": 0 + "port-version": 1 }, "asiosdk": { "baseline": "2.3.3",