Some versions of G++ define macros named 'major' and 'minor', which

were conflicting with the member initialisers in the VersionNumber
constructor.
This commit is contained in:
Nav
2021-12-28 03:12:36 +00:00
parent 76fcc385f3
commit 72191f922f

View File

@@ -6,7 +6,7 @@
using namespace Bloom;
VersionNumber::VersionNumber(std::uint16_t major, std::uint16_t minor, std::uint16_t patch)
: major(major), minor(minor), patch(patch) {
: major{major}, minor{minor}, patch{patch} {
this->combined = static_cast<std::uint32_t>(
std::stoul(std::to_string(this->major) + std::to_string(this->minor) + std::to_string(this->patch))
);