consexpr deletion from string

This commit is contained in:
Metehan Tuncbilek
2024-10-20 14:02:40 +03:00
parent 9fa25d6922
commit b047a7c6c3
2 changed files with 7 additions and 7 deletions

View File

@@ -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)
{