We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f390c commit bf11293Copy full SHA for bf11293
1 file changed
lib/DXIL/DxilShaderFlags.cpp
@@ -283,14 +283,14 @@ struct ResourceKey {
283
uint32_t UpperBound;
284
};
285
286
-struct ResKeyEq : public std::binary_function<ResourceKey, ResourceKey, bool> {
+struct ResKeyEq {
287
bool operator()(const ResourceKey& k1, const ResourceKey& k2) const {
288
return k1.Class == k2.Class && k1.Space == k2.Space &&
289
k1.LowerBound == k2.LowerBound && k1.UpperBound == k2.UpperBound;
290
}
291
292
293
-struct ResKeyHash : public std::unary_function<ResourceKey, std::size_t> {
+struct ResKeyHash {
294
std::size_t operator()(const ResourceKey& k) const {
295
return std::hash<uint32_t>()(k.LowerBound) ^ (std::hash<uint32_t>()(k.UpperBound)<<1) ^
296
(std::hash<uint32_t>()(k.Space)<<2) ^ (std::hash<uint8_t>()(k.Class)<<3);
0 commit comments