We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a5274 commit 18c7fadCopy full SHA for 18c7fad
examples/07_resizeable_member/resizeable.cpp
@@ -166,7 +166,7 @@ int main(int argc, char **argv) {
166
}
167
168
//Resize data to fit all stored data
169
- data.resize(stored_subset.end()+1);
+ data.resize(stored_subset.max_count());
170
171
//Set all data to a value that was never stored, just for testing
172
for(int& i : data) i = -2;
0 commit comments