Skip to content

Commit

Permalink
map::iterator is a dependent typename and needs the typename keyword. (
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Apr 9, 2024
1 parent 1fb3e9f commit 923377c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/fair_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class fair_queue final

private:
std::map<origin_entry, entry> queues;
std::map<origin_entry, entry>::iterator iterator{ queues.end () };
typename std::map<origin_entry, entry>::iterator iterator{ queues.end () };
size_t counter{ 0 };

std::chrono::steady_clock::time_point last_update{};
Expand Down

0 comments on commit 923377c

Please sign in to comment.