mirror of
https://github.com/BlackMATov/promise.hpp.git
synced 2025-12-16 14:11:21 +07:00
remove deprecated std::unary_function using
This commit is contained in:
@@ -1296,9 +1296,7 @@ namespace promise_hpp
|
|||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
template < typename T >
|
template < typename T >
|
||||||
struct hash<promise_hpp::promise<T>>
|
struct hash<promise_hpp::promise<T>> final {
|
||||||
: std::unary_function<promise_hpp::promise<T>, std::size_t>
|
|
||||||
{
|
|
||||||
std::size_t operator()(const promise_hpp::promise<T>& p) const noexcept {
|
std::size_t operator()(const promise_hpp::promise<T>& p) const noexcept {
|
||||||
return p.hash();
|
return p.hash();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user