StableVector repetition fix.

This commit is contained in:
Metehan Tuncbilek
2024-10-09 20:17:21 +03:00
parent 0e34b90f67
commit 89ce60f869
2 changed files with 59 additions and 139 deletions

View File

@@ -14,7 +14,7 @@
namespace OpenVulkano
{
template<typename K, typename V, template<typename, typename> class Pair = std::pair,
template<typename> class Vec = std::vector, typename = std::enable_if_t<std::is_integral<K>::value>>
template<typename...> class Vec = std::vector, typename = std::enable_if_t<std::is_integral<K>::value>>
class BinSearchArrayMap
{
public:
@@ -59,7 +59,7 @@ namespace OpenVulkano
std::streamsize index = FindIndexInVector(key);
if (index < 0)
{
std::runtime_error("Key not found");
throw std::runtime_error("Key not found");
}
return m_data[index];
}