opnsense-ports/www/sams2/files/patch-src_net.cpp
Franco Fichtner b44200ae75 */*: sync with upstream
Taken from: HardenedBSD
2018-07-06 14:35:17 +02:00

18 lines
478 B
C++

Fix build with Clang6: stringstream doesn't have a viable overload
for ostream::operator<< . It does with Clang5. Use str() explicitly.
--- src/net.cpp.orig 2018-07-04 11:24:43 UTC
+++ src/net.cpp
@@ -156,9 +156,10 @@ string Net::asString ()
s << _net.c_str ();
- DEBUG (DEBUG8, "[" << this << "->" << __FUNCTION__ << "] = " << s);
+ string r = s.str ();
+ DEBUG (DEBUG8, "[" << this << "->" << __FUNCTION__ << "] = " << r);
- return s.str ();
+ return r;
}