consexpr deletion from string
This commit is contained in:
@@ -203,7 +203,7 @@ namespace OpenVulkano
|
||||
m_string.size() - end - delimiter.size()) };
|
||||
}
|
||||
|
||||
static inline constexpr int64_t OctToInt(const std::string_view& string)
|
||||
static inline int64_t OctToInt(const std::string_view& string)
|
||||
{
|
||||
int64_t result = 0;
|
||||
for (int i = 0; i < static_cast<int>(string.length()); i++)
|
||||
@@ -226,9 +226,9 @@ namespace OpenVulkano
|
||||
return result;
|
||||
}
|
||||
|
||||
constexpr int64_t OctToInt() const { return OctToInt(m_string); }
|
||||
int64_t OctToInt() const { return OctToInt(m_string); }
|
||||
|
||||
static inline constexpr int64_t HexToInt(const std::string_view& string)
|
||||
static inline int64_t HexToInt(const std::string_view& string)
|
||||
{
|
||||
int64_t result = 0;
|
||||
for (char c: string)
|
||||
@@ -261,7 +261,7 @@ namespace OpenVulkano
|
||||
return result;
|
||||
}
|
||||
|
||||
constexpr int64_t HexToInt() { return HexToInt(m_string); }
|
||||
int64_t HexToInt() { return HexToInt(m_string); }
|
||||
|
||||
static bool IsUrl(const std::string_view& str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user