Skip to content

Commit bf11293

Browse files
author
Greg Roth
authored
Remove unneded, incompatible function inheritance (#3523)
C++17 removes these function templates. they aren't needed anyway
1 parent 62f390c commit bf11293

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/DXIL/DxilShaderFlags.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,14 @@ struct ResourceKey {
283283
uint32_t UpperBound;
284284
};
285285

286-
struct ResKeyEq : public std::binary_function<ResourceKey, ResourceKey, bool> {
286+
struct ResKeyEq {
287287
bool operator()(const ResourceKey& k1, const ResourceKey& k2) const {
288288
return k1.Class == k2.Class && k1.Space == k2.Space &&
289289
k1.LowerBound == k2.LowerBound && k1.UpperBound == k2.UpperBound;
290290
}
291291
};
292292

293-
struct ResKeyHash : public std::unary_function<ResourceKey, std::size_t> {
293+
struct ResKeyHash {
294294
std::size_t operator()(const ResourceKey& k) const {
295295
return std::hash<uint32_t>()(k.LowerBound) ^ (std::hash<uint32_t>()(k.UpperBound)<<1) ^
296296
(std::hash<uint32_t>()(k.Space)<<2) ^ (std::hash<uint8_t>()(k.Class)<<3);

0 commit comments

Comments
 (0)