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 7a024d3 commit d6314e0Copy full SHA for d6314e0
examples/unique_resource.cpp
@@ -19,7 +19,7 @@ int main() {
19
);
20
21
// Use the array
22
- for (size_t i = 0; i < size; ++i) {
+ for (size_t i = 0; i < arr_size; ++i) {
23
resource_ptr.get()[i] = static_cast<int>(i * 2);
24
}
25
std::cout << "First element: " << resource_ptr.get()[0] << "\n";
0 commit comments