Silence some warnings
This commit is contained in:
@@ -34,7 +34,7 @@ namespace OpenVulkano
|
||||
|
||||
explicit Version(double version);
|
||||
|
||||
[[nodiscard]] uint32_t GetComponent(size_t compId) const
|
||||
[[nodiscard]] uint32_t GetComponent(const size_t compId) const
|
||||
{
|
||||
if (m_versionComponents.size() < compId + 1) return 0u;
|
||||
return m_versionComponents[compId];
|
||||
@@ -52,7 +52,7 @@ namespace OpenVulkano
|
||||
|
||||
[[nodiscard]] const std::vector<std::string>& GetTags() const { return m_tagComponents; }
|
||||
|
||||
[[nodiscard]] const std::vector<uint32_t>& GetVersionComponents() const { return m_versionComponents; }
|
||||
[[nodiscard]] const decltype(m_versionComponents)& GetVersionComponents() const { return m_versionComponents; }
|
||||
|
||||
//region Conversion operators
|
||||
[[nodiscard]] explicit operator uint32_t() const { return (Major() << 20) | ((Minor() & 0x3FF) << 10) | (Patch() & 0x3FF); }
|
||||
@@ -78,8 +78,8 @@ namespace OpenVulkano
|
||||
[[nodiscard]] int CompareComponents(const Version& other) const;
|
||||
};
|
||||
|
||||
static inline Version operator""_v(const char* str) { return { str }; }
|
||||
static inline Version operator""_version(const char* str) { return { str }; }
|
||||
static inline Version operator""_v(long double val) { return Version(static_cast<double>(val)); }
|
||||
static inline Version operator""_version(long double val) { return Version(static_cast<double>(val)); }
|
||||
static Version operator""_v(const char* str) { return { str }; }
|
||||
static Version operator""_version(const char* str) { return { str }; }
|
||||
static Version operator""_v(const long double val) { return Version(static_cast<double>(val)); }
|
||||
static Version operator""_version(const long double val) { return Version(static_cast<double>(val)); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user