StableVector repetition fix.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user