Bug #3423
Updated by Junxiao Shi over 8 years ago
The function `operator<<` for `Rib` of class is printing Rib "prints" the memory address pointer addresses instead of `RibEntry` instances. It should print the contents content of entries. the RibEntries. ```diff diff --git a/rib/rib.cpp b/rib/rib.cpp index 4c4d3c5..8c86ea4 100644 --- a/rib/rib.cpp +++ b/rib/rib.cpp @@ -501,7 +501,7 @@ std::ostream& operator<<(std::ostream& os, const Rib& rib) { for (const auto& item : rib) { - os << item.second << "\n"; + os << *item.second << "\n"; } return os; ```