From cb417bc2a20b55f65617e4acce37a2af5e9fe1d1 Mon Sep 17 00:00:00 2001
From: sbund <sbund@wiback.org>
Date: Mon, 9 Oct 2006 07:23:40 +0000
Subject: [PATCH] Make LLSocketAddress constructor explicit

---
 Socket/LLAddressing.hh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Socket/LLAddressing.hh b/Socket/LLAddressing.hh
index 9af59f145..ce699bea9 100644
--- a/Socket/LLAddressing.hh
+++ b/Socket/LLAddressing.hh
@@ -67,14 +67,14 @@ namespace lib {
         
         LLSocketAddress();
         // And this is for bind
-        LLSocketAddress(unsigned protocol, std::string interface="");
+        explicit LLSocketAddress(unsigned protocol, std::string interface="");
         explicit LLSocketAddress(std::string interface);
         // This is for sending packets ..
         // We must use enable_if here, so this constructor will not hide
         // above constructor if passed a plain int or short argument
         template <class ForwardRange>
-        LLSocketAddress(ForwardRange const & address, std::string interface,
-                        typename boost::enable_if_c<! boost::is_integral<ForwardRange>::value >::type * = 0);
+        explicit LLSocketAddress(ForwardRange const & address, std::string interface="",
+                                 typename boost::enable_if_c<! boost::is_integral<ForwardRange>::value >::type * = 0);
 
         void clear();
 
-- 
GitLab