Skip to content

Commit

Permalink
Update sn3d.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Feb 26, 2025
1 parent f8732bc commit f52d129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sn3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ template <typename T>
}

template <typename T>
void resize_exactly(std::vector<T> &vec, const ptrdiff_t size) {
constexpr void resize_exactly(std::vector<T> &vec, const ptrdiff_t size) {
// just resizing can (only with libstdc++?) allocate a larger capacity than needed
vec.reserve(size);
vec.resize(size);
Expand Down

0 comments on commit f52d129

Please sign in to comment.