We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f569d1 commit 46c51eaCopy full SHA for 46c51ea
CMakeLists.txt
@@ -68,7 +68,7 @@ add_custom_command(
68
${PROJECT_SOURCE_DIR}/python/pygerber_gerber_parser_cpp/gerber_parser$<TARGET_FILE_SUFFIX:PyGerberGerberParserCpp>
69
)
70
71
-CPMAddPackage("gh:catchorg/Catch2@3.3.2")
+CPMAddPackage("gh:catchorg/Catch2@3.7.1")
72
73
74
add_executable(tests)
cpp/gerber/src/parser.cpp
@@ -42,7 +42,7 @@ namespace gerber {
42
}
43
44
location_t Parser::parse_global(const std::string_view& source, const location_t& index) {
45
- const std::string_view sub_source{source.begin() + index, source.size() - index};
+ const std::string_view sub_source = source.substr(index);
46
47
if (sub_source.empty()) {
48
return 0;
0 commit comments