cpuid/x86: prefer string_view to view for output

This commit is contained in:
Danny Robson 2023-05-15 11:04:37 +10:00
parent facba4e799
commit 3efa7c2251

View File

@ -153,7 +153,7 @@ std::ostream&
cruft::cpu::operator<< (std::ostream &os, const x86 &val)
{
auto const to_string = [] (auto const &obj) {
return cruft::view {
return std::string_view {
obj.begin (),
std::find (obj.begin (), obj.end (), '\0')
};