Skip to content

Commit

Permalink
Fixed error with parse and OptPos
Browse files Browse the repository at this point in the history
  • Loading branch information
R533-Code committed Sep 22, 2024
1 parent ae2bedc commit 94c3b6d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions include/colt/io/args_parsing.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,11 @@ namespace clt::cl

if constexpr (opt::location != nullptr)
{
auto res = clt::parse(strv, *opt::location);
if (!res)
return res;
auto res = clt::parse<ResultType>(strv);
if (res)
*opt::location = std::move(*res);
else
return res.error();
}

//Run callback if it exists.
Expand Down
2 changes: 1 addition & 1 deletion libraries/Catch2
Submodule Catch2 updated 62 files
+1 −1 CMakeLists.txt
+2 −1 docs/contributing.md
+0 −21 docs/release-notes.md
+2 −9 extras/Catch.cmake
+87 −41 extras/catch_amalgamated.cpp
+71 −113 extras/catch_amalgamated.hpp
+1 −1 meson.build
+1 −1 src/CMakeLists.txt
+1 −1 src/catch2/benchmark/catch_outlier_classification.hpp
+1 −1 src/catch2/catch_assertion_result.cpp
+1 −1 src/catch2/catch_message.hpp
+16 −20 src/catch2/catch_session.cpp
+10 −6 src/catch2/catch_test_case_info.cpp
+2 −4 src/catch2/catch_test_case_info.hpp
+1 −1 src/catch2/catch_timer.cpp
+1 −1 src/catch2/catch_translate_exception.hpp
+1 −1 src/catch2/catch_version.cpp
+1 −1 src/catch2/catch_version_macros.hpp
+2 −1 src/catch2/interfaces/catch_interfaces_capture.hpp
+2 −2 src/catch2/internal/catch_assertion_handler.cpp
+2 −2 src/catch2/internal/catch_assertion_handler.hpp
+1 −1 src/catch2/internal/catch_clara.cpp
+6 −0 src/catch2/internal/catch_context.cpp
+4 −9 src/catch2/internal/catch_context.hpp
+6 −5 src/catch2/internal/catch_decomposer.hpp
+12 −15 src/catch2/internal/catch_is_permutation.hpp
+3 −3 src/catch2/internal/catch_lazy_expr.hpp
+1 −3 src/catch2/internal/catch_random_integer_helpers.hpp
+26 −0 src/catch2/internal/catch_result_type.cpp
+7 −16 src/catch2/internal/catch_result_type.hpp
+2 −2 src/catch2/internal/catch_run_context.cpp
+1 −1 src/catch2/internal/catch_run_context.hpp
+7 −5 src/catch2/internal/catch_test_macro_impl.hpp
+1 −1 src/catch2/internal/catch_test_registry.cpp
+2 −4 src/catch2/internal/catch_test_registry.hpp
+8 −8 src/catch2/internal/catch_uniform_integer_distribution.hpp
+22 −2 src/catch2/internal/catch_xmlwriter.cpp
+4 −15 src/catch2/internal/catch_xmlwriter.hpp
+0 −8 src/catch2/matchers/catch_matchers_range_equals.hpp
+4 −8 src/catch2/matchers/internal/catch_matchers_impl.hpp
+1 −1 src/catch2/meson.build
+0 −1 tests/SelfTest/Baselines/automake.sw.approved.txt
+0 −1 tests/SelfTest/Baselines/automake.sw.multi.approved.txt
+2 −8 tests/SelfTest/Baselines/compact.sw.approved.txt
+2 −8 tests/SelfTest/Baselines/compact.sw.multi.approved.txt
+2 −2 tests/SelfTest/Baselines/console.std.approved.txt
+2 −38 tests/SelfTest/Baselines/console.sw.approved.txt
+2 −38 tests/SelfTest/Baselines/console.sw.multi.approved.txt
+1 −2 tests/SelfTest/Baselines/junit.sw.approved.txt
+1 −2 tests/SelfTest/Baselines/junit.sw.multi.approved.txt
+0 −1 tests/SelfTest/Baselines/sonarqube.sw.approved.txt
+0 −1 tests/SelfTest/Baselines/sonarqube.sw.multi.approved.txt
+1 −13 tests/SelfTest/Baselines/tap.sw.approved.txt
+1 −13 tests/SelfTest/Baselines/tap.sw.multi.approved.txt
+0 −2 tests/SelfTest/Baselines/teamcity.sw.approved.txt
+0 −2 tests/SelfTest/Baselines/teamcity.sw.multi.approved.txt
+2 −53 tests/SelfTest/Baselines/xml.sw.approved.txt
+2 −53 tests/SelfTest/Baselines/xml.sw.multi.approved.txt
+0 −15 tests/SelfTest/IntrospectiveTests/Clara.tests.cpp
+1 −1 tests/TestScripts/testBazelReporter.py
+2 −1 tools/scripts/buildAndTest.cmd
+2 −1 tools/scripts/buildAndTest.sh
2 changes: 1 addition & 1 deletion libraries/date
Submodule date updated 1 files
+21 −60 src/tz.cpp
2 changes: 1 addition & 1 deletion libraries/zpp_bits
Submodule zpp_bits updated 1 files
+1 −1 zpp_bits.h

0 comments on commit 94c3b6d

Please sign in to comment.