cruft: update for new iterator namespaces

This commit is contained in:
Danny Robson 2019-03-18 16:19:30 +11:00
parent fa6a5e103d
commit b09e0c6153
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@
#include "instance.hpp" #include "instance.hpp"
#include "physical_device.hpp" #include "physical_device.hpp"
#include <cruft/util/iterator.hpp> #include <cruft/util/iterator/infix.hpp>
#include <iomanip> #include <iomanip>
#include <ostream> #include <ostream>
@ -81,7 +81,7 @@ cruft::vk::operator<< (std::ostream &os, const instance &i)
const auto &extensions = i.extensions (); const auto &extensions = i.extensions ();
std::copy (std::cbegin (extensions), std::copy (std::cbegin (extensions),
std::cend (extensions), std::cend (extensions),
cruft::infix_iterator<std::string> (os, ", ")); cruft::iterator::infix_iterator<std::string> (os, ", "));
return os << " ] }"; return os << " ] }";
} }
@ -160,10 +160,10 @@ std::ostream&
cruft::vk::operator<< (std::ostream &os, const physical_device &d) cruft::vk::operator<< (std::ostream &os, const physical_device &d)
{ {
return os << "physical_device { " return os << "physical_device { "
<< "extensions: [ " << cruft::make_infix (d.extensions ()) << " ]" << "extensions: [ " << cruft::iterator::make_infix (d.extensions ()) << " ]"
<< ", properties: " << d.properties () << ", properties: " << d.properties ()
<< ", features: " << d.features () << ", features: " << d.features ()
<< ", queues: [ " << cruft::make_infix (d.queue_families ()) << " ]" << ", queues: [ " << cruft::iterator::make_infix (d.queue_families ()) << " ]"
<< " }"; << " }";
} }

View File

@ -7,7 +7,7 @@
* 2017-2018, Danny Robson <danny@nerdcruft.net> * 2017-2018, Danny Robson <danny@nerdcruft.net>
*/ */
#include <cruft/util/iterator.hpp> #include <cruft/util/iterator/infix.hpp>
#include <cruft/vk/load/ostream.hpp> #include <cruft/vk/load/ostream.hpp>
#include <cruft/vk/load/vtable.hpp> #include <cruft/vk/load/vtable.hpp>
@ -31,9 +31,9 @@ main (int, char**)
std::cout << "[ " std::cout << "[ "
<< "available_layers: [ " << "available_layers: [ "
<< cruft::make_infix (cruft::vk::instance::available_layers ()) << cruft::iterator::make_infix (cruft::vk::instance::available_layers ())
<< " ] }" << " ] }"
<< ", instance: " << instance << ", instance: " << instance
<< ", devices: [ " << cruft::make_infix (cruft::vk::physical_device::find (instance)) << " ], " << ", devices: [ " << cruft::iterator::make_infix (cruft::vk::physical_device::find (instance)) << " ], "
<< " } ]\n"; << " } ]\n";
} }