Skip to content
Snippets Groups Projects
Commit cb417bc2 authored by sbund's avatar sbund
Browse files

Make LLSocketAddress constructor explicit

parent a6783df9
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment