Skip to content

Commit ba12e28

Browse files
committed
Merge branch 'cf/468-add-proper-semantic-version-comparison-to-check-mod-compatibility' of https://github.com/cortex-command-community/Cortex-Command-Community-Project-Source into cf/468-add-proper-semantic-version-comparison-to-check-mod-compatibility
2 parents 6b01e00 + c07cec2 commit ba12e28

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

System/Semver200/version.inl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,7 @@ namespace version {
6767
template<typename Parser, typename Comparator, typename Modifier>
6868
const std::string Basic_version<Parser, Comparator, Modifier>::str() const {
6969
std::stringstream buffer;
70-
buffer << ver_.major << "." << ver_.minor << "." << ver_.patch;
71-
std::string prl = prerelease();
72-
if (!prl.empty()) {
73-
buffer << "-" << prl;
74-
}
75-
std::string bld = build();
76-
if (!bld.empty()) {
77-
buffer << "+" << bld;
78-
}
70+
buffer << *this;
7971
return buffer.str();
8072
}
8173

0 commit comments

Comments
 (0)