From 8e115d3c7732d492084d56ec42b673cb2e8e64df Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 2 Mar 2019 23:01:28 +1100 Subject: [PATCH] ostream: quote more strings --- ostream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ostream.cpp b/ostream.cpp index 5e6d5d3..c4ea5a7 100644 --- a/ostream.cpp +++ b/ostream.cpp @@ -132,8 +132,8 @@ operator<< (std::ostream &os, const VkPhysicalDeviceLimits &l) std::ostream& operator<< (std::ostream &os, const VkPhysicalDeviceProperties &p) { - os << "{ api: "; write_version (os, p.apiVersion); - os << ", driver: "; write_version (os, p.driverVersion); + os << "{ api: '"; write_version (os, p.apiVersion) << "'"; + os << ", driver: '"; write_version (os, p.driverVersion) << "'"; os << ", vendor: 0x" << std::hex << std::setw (4) << std::setfill ('0') << p.vendorID << std::dec; os << ", device: 0x" << std::hex << std::setw (4) << std::setfill ('0') << p.deviceID << std::dec; os << ", name: '" << p.deviceName << "'";