layers: Fix Android build
authorYuly Novikov <ynovikov@chromium.org>
Fri, 12 Jan 2018 23:54:12 +0000 (18:54 -0500)
committerMike Weiblen <mikew@lunarg.com>
Tue, 16 Jan 2018 18:28:24 +0000 (11:28 -0700)
ndk-bundle/sources/cxx-stl/llvm-libc++/include/set
expects comparator's operator() to be const.

layers/descriptor_sets.cpp

index 705ef3c..79e3ca4 100644 (file)
@@ -30,7 +30,7 @@
 #include <algorithm>
 
 struct BindingNumCmp {
-    bool operator()(const VkDescriptorSetLayoutBinding *a, const VkDescriptorSetLayoutBinding *b) {
+    bool operator()(const VkDescriptorSetLayoutBinding *a, const VkDescriptorSetLayoutBinding *b) const {
         return a->binding < b->binding;
     }
 };