Skip to content

Commit

Permalink
Removed deprecated unary_function and binary_function
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Barberio <[email protected]>
  • Loading branch information
insomniacslk committed Jan 2, 2025
1 parent af52c54 commit 9946d9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,11 @@ make

You need the latest XCode installed to build this project. Then run:
```bash
brew install https://raw.githubusercontent.com/insomniacslk/dublin-traceroute/master/homebrew/dublin-traceroute.rb
wget https://raw.githubusercontent.com/insomniacslk/dublin-traceroute/master/homebrew/dublin-traceroute.rb
brew install ./dublin-traceroute.rb
```

This will be as simple as `brew install dublin-traceroute` after https://github.com/Homebrew/homebrew/pull/50000 will be merged.
Unfortunately `dublin-traceroute` is not part of Homebrew's base packages, see <https://github.com/Homebrew/homebrew/pull/50000>.

Please [file an issue](https://github.com/insomniacslk/dublin-traceroute/issues/new/choose) with the necessary details if this doesn't work for you.

Expand Down
2 changes: 1 addition & 1 deletion googletest
Submodule googletest updated 381 files
4 changes: 2 additions & 2 deletions include/dublintraceroute/icmp_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
typedef std::tuple<uint8_t, uint8_t> icmpmessage_t;


struct icmpmessage_hash: public std::unary_function<icmpmessage_t, std::size_t> {
struct icmpmessage_hash {
std::size_t operator()(const icmpmessage_t &key) const {
return std::get<0>(key) ^ std::get<1>(key);
}
};


struct icmpmessage_equals: public std::binary_function<icmpmessage_t, icmpmessage_t, bool> {
struct icmpmessage_equals {
bool operator()(const icmpmessage_t &left, const icmpmessage_t &right) const {
return (
std::get<0>(left) == std::get<0>(right) &&
Expand Down

0 comments on commit 9946d9a

Please sign in to comment.