Skip to content

Commit

Permalink
Replace deprecated use of std::unary_function (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-minter authored Feb 10, 2024
1 parent 2efdb21 commit 80ece1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goesproc/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct Channel {
using SegmentKey = std::tuple<std::string, std::string, std::string>;

// Corresponding hash function
struct SegmentKeyHash : public std::unary_function<SegmentKey, std::size_t> {
struct SegmentKeyHash : public std::function<std::size_t(SegmentKey)> {
std::size_t operator()(const SegmentKey& k) const {
return
std::hash<std::string>()(std::get<0>(k)) ^
Expand Down

0 comments on commit 80ece1a

Please sign in to comment.