Skip to content

Commit 73f3dae

Browse files
test
1 parent c105b7e commit 73f3dae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/version_weaver.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ std::expected<std::string, parse_error> inc(version input,
4848
return std::unexpected(parse_error::INVALID_MAJOR);
4949
}
5050
auto incremented_major_int = major_int + 1;
51-
auto major = std::to_string(incremented_major_int);
52-
result = version_weaver::version{major, "0", "0"};
51+
std::string incremented_major_str =
52+
std::to_string(incremented_major_int).c_str();
53+
result = version_weaver::version{incremented_major_str, "0", "0"};
5354
break;
5455
}
5556
case MINOR:

0 commit comments

Comments
 (0)