diff options
| author | Jamie Madill <jmadill@chromium.org> | 2017-12-15 17:14:04 -0500 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-12-19 09:34:16 -0700 |
| commit | ebe93717e422d218ebc3717395883f52a5324e6a (patch) | |
| tree | 018b16f5af68ee3b1acb505031e2c9f8eafa972f /layers/core_validation.cpp | |
| parent | 16bf4559d30faafcdeda473a380023c60c8d8472 (diff) | |
| download | usermoji-ebe93717e422d218ebc3717395883f52a5324e6a.tar.xz | |
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
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; |
