Skip to content

Commit 7e78fd1

Browse files
Remove use of deprecated/removed types (#76)
1 parent 5780ba6 commit 7e78fd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/signalrclient/case_insensitive_comparison_utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
#pragma once
66

7-
#include <functional>
7+
#include <string>
88
#include <cctype>
99

1010
namespace signalr
1111
{
1212
// Note: These functions are not pretending to be all-purpose helpers for case insensitive string comparison. Rather
1313
// we use them to compare hub and hub method names which are expected to be almost exclusively ASCII and this is the
1414
// simplest thing that would work without having to take dependencies on third party libraries.
15-
struct case_insensitive_equals : std::binary_function<std::string, std::string, bool>
15+
struct case_insensitive_equals
1616
{
1717
bool operator()(const std::string& s1, const std::string& s2) const
1818
{
@@ -33,7 +33,7 @@ namespace signalr
3333
}
3434
};
3535

36-
struct case_insensitive_hash : std::unary_function<std::string, std::size_t>
36+
struct case_insensitive_hash
3737
{
3838
std::size_t operator()(const std::string& s) const noexcept
3939
{

0 commit comments

Comments
 (0)