Project

General

Profile

Bug #3423

Updated by Davide Pesavento almost 9 years ago

The function `operator<<` operator<<() of class Rib "prints" the pointer addresses instead of the content of 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; 
 ``` (END) 

Back