From 4320950db13719f2256d1dd9662e14c4b7d72323 Mon Sep 17 00:00:00 2001 From: Arthur Brainville Date: Mon, 6 Jan 2020 12:16:35 +0100 Subject: [PATCH] Update EnableValidationWithCallback.cpp (#466) Quick patch that fixes the `EnableValidationWithCallback` sample: There's no `str()` method here, should use `c_str()`; *but* also, you can print the std::string directly to `std::cout`. Patches remove `.str()` from printing line when WIN32 is not defined. --- .../EnableValidationWithCallback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp b/samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp index cef036f..3c05fae 100644 --- a/samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp +++ b/samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp @@ -82,7 +82,7 @@ VkBool32 debugMessageFunc(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity #ifdef _WIN32 MessageBox(NULL, message.c_str(), "Alert", MB_OK); #else - std::cout << message.str() << std::endl; + std::cout << message << std::endl; #endif return false;