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:
rusefillc 2024-03-21 17:55:53 -04:00
parent a8fb7f1c24
commit 96abbebd5b
1 changed files with 1 additions and 1 deletions

View File

@ -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++;