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:
@@ -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))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user