static_vector.h:29:17: error: writing 10 bytes into a region of size 0 [-Werror=stringop-overflow=] #6270
touching template randomly
This commit is contained in:
parent
a8fb7f1c24
commit
96abbebd5b
|
@ -24,7 +24,7 @@ struct static_vector {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
auto& location = m_storage[m_size];
|
||||
T& location = m_storage[m_size];
|
||||
|
||||
location = value;
|
||||
m_size++;
|
||||
|
|
Loading…
Reference in New Issue