info-tool: eliminate temporaries

This commit is contained in:
Danny Robson 2017-09-01 12:14:36 +10:00
parent ba3a49eccf
commit 4848692016

View File

@ -28,9 +28,6 @@ main (int, char**)
cruft::vk::instance instance (cruft::vk::instance::create_info {});
std::cout << "instance: " << instance << '\n';
auto devices = cruft::vk::physical_device::find (instance);
for (const auto &d: devices) {
for (const auto &d: cruft::vk::physical_device::find (instance))
std::cout << d << '\n';
}
}