cpuid/x86: prefer string_view to view for output
This commit is contained in:
parent
facba4e799
commit
3efa7c2251
@ -153,7 +153,7 @@ std::ostream&
|
|||||||
cruft::cpu::operator<< (std::ostream &os, const x86 &val)
|
cruft::cpu::operator<< (std::ostream &os, const x86 &val)
|
||||||
{
|
{
|
||||||
auto const to_string = [] (auto const &obj) {
|
auto const to_string = [] (auto const &obj) {
|
||||||
return cruft::view {
|
return std::string_view {
|
||||||
obj.begin (),
|
obj.begin (),
|
||||||
std::find (obj.begin (), obj.end (), '\0')
|
std::find (obj.begin (), obj.end (), '\0')
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user