diff options
-rw-r--r-- | routing_table.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/routing_table.hpp b/routing_table.hpp index f23b54c..10198d8 100644 --- a/routing_table.hpp +++ b/routing_table.hpp @@ -25,8 +25,10 @@ struct Entry std::string gateway; // interface for this route std::string interface; - Entry(std::string dest, std::string gtw, std::string intf) : - destination(dest), gateway(gtw), interface(intf) + Entry(const std::string& dest, const std::string& gtw, + const std::string& intf) : + destination(dest), + gateway(gtw), interface(intf) { } |