From ebe93717e422d218ebc3717395883f52a5324e6a Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Fri, 15 Dec 2017 17:14:04 -0500 Subject: layers: Work around bugs in old STL versions. Some old versions of the C++ STL have a few bugs with advanced features. This works around two such issues: - std::unordered_map::const_reference having the wrong type - an error with an explicit std::vector constructor --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index abe3b279..4a31fac3 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -9418,7 +9418,7 @@ static bool PreCallValidateCreateSwapchainKHR(layer_data *dev_data, const char * // to present to any native window on Android; require the // application to have established support on any other platform. if (!dev_data->instance_data->extensions.vk_khr_android_surface) { - auto support_predicate = [dev_data](decltype(surface_state->gpu_queue_support)::const_reference qs) -> bool { + auto support_predicate = [dev_data](decltype(surface_state->gpu_queue_support)::value_type qs) -> bool { // TODO: should restrict search only to queue families of VkDeviceQueueCreateInfos, not whole phys. device return (qs.first.gpu == dev_data->physical_device) && qs.second; }; -- cgit v1.2.3