Skip to content

Commit 18c7fad

Browse files
Use correct API in example
1 parent f2a5274 commit 18c7fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/07_resizeable_member/resizeable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int main(int argc, char **argv) {
166166
}
167167

168168
//Resize data to fit all stored data
169-
data.resize(stored_subset.end()+1);
169+
data.resize(stored_subset.max_count());
170170

171171
//Set all data to a value that was never stored, just for testing
172172
for(int& i : data) i = -2;

0 commit comments

Comments
 (0)