Remove deprecated std::bind2nd() call
authorPawel Ksiezopolski <pawel.ksiezopolski@mobica.com>
Mon, 28 Oct 2019 14:03:51 +0000 (15:03 +0100)
committerPawel Ksiezopolski <pawel.ksiezopolski@mobica.com>
Mon, 28 Oct 2019 14:03:51 +0000 (15:03 +0100)
std::bind2nd() was deprecated in C++11 and removed in C++17.

Affects:
dEQP-VK.descriptor_indexing.*

Components: Vulkan

VK-GL-CTS issue: 2074

Change-Id: I408a39ce9f1632515e3ff6bcfb95966e19aa4b22

external/vulkancts/modules/vulkan/descriptor_indexing/vktDescriptorSetsIndexingTestsUtils.cpp

index 3c18aed..0e71de9 100644 (file)
@@ -119,7 +119,7 @@ std::vector<deUint32> generatePrimes (deUint32                                              limit)
                }
        }
 
-       std::vector<deUint32>::iterator x = std::stable_partition(v.begin(), v.end(), std::bind2nd(std::greater_equal<deUint32>(), 2));
+       std::vector<deUint32>::iterator x = std::stable_partition(v.begin(), v.end(), [](deUint32 value) { return value >= 2; });
 
        return std::vector<deUint32>(v.begin(), x);
 }