Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/Progmasoft/ChoiceShrinker.cpp
diff options
context:
space:
mode:
authorLeitwolf2026-10-31 17:18:21 +0300
committerGitHub2026-10-31 17:18:21 +0300
commit326ea0c0213aeecb6b984bba3dabb0ebad97679e (patch)
tree5cec698f0bc0b8a60f45e866fb40f2fd8a358bd1 /src/Progmasoft/ChoiceShrinker.cpp
parent6a42cdf6461b2577106ef094d6f98025554b6077 (diff)
parentafe91797e9d50cd4712d3694a2e5fedfc0b966b1 (diff)
downloadcatch3-326ea0c0213aeecb6b984bba3dabb0ebad97679e.tar.gz
Merge pull request #22 from Progmasoft/build/cpp17
Build Catch3 as C++17
Diffstat (limited to 'src/Progmasoft/ChoiceShrinker.cpp')
-rw-r--r--src/Progmasoft/ChoiceShrinker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Progmasoft/ChoiceShrinker.cpp b/src/Progmasoft/ChoiceShrinker.cpp
index c1aac19c..b9b5a47d 100644
--- a/src/Progmasoft/ChoiceShrinker.cpp
+++ b/src/Progmasoft/ChoiceShrinker.cpp
@@ -14,8 +14,8 @@ namespace Progmasoft::Catch3::Detail
{
bool
- IsSimpler(std::span<const std::uint64_t> candidate,
- std::span<const std::uint64_t> current) noexcept
+ IsSimpler(const std::vector<std::uint64_t> &candidate,
+ const std::vector<std::uint64_t> &current) noexcept
{
if (candidate.size() != current.size())
{
@@ -299,7 +299,7 @@ namespace Progmasoft::Catch3::Detail
}
std::string
- EncodeChoices(std::size_t size, std::span<const std::uint64_t> choices)
+ EncodeChoices(std::size_t size, const std::vector<std::uint64_t> &choices)
{
// c3.<size>.<choice>-<choice>-... with each number in base 36: short
// enough to paste from a CI log, and only characters that survive
@@ -329,7 +329,7 @@ namespace Progmasoft::Catch3::Detail
std::optional<DecodedChoices>
DecodeChoices(std::string_view token)
{
- if (!token.starts_with(kTokenPrefix))
+ if (token.substr(0, kTokenPrefix.size()) != kTokenPrefix)
{
return std::nullopt;
}