Commit 2b7a3627 authored by Davis King's avatar Davis King

Minor changes to avoid a compiler error and warning in visual studio

parent 1527db6b
...@@ -19,14 +19,17 @@ namespace dlib ...@@ -19,14 +19,17 @@ namespace dlib
{ {
public: public:
iosockstream() iosockstream(
) :
std::iostream(0)
{ {
tie(this); tie(this);
} }
iosockstream( iosockstream(
const network_address& addr const network_address& addr
) ) :
std::iostream(0)
{ {
tie(this); tie(this);
open(addr); open(addr);
...@@ -35,7 +38,8 @@ namespace dlib ...@@ -35,7 +38,8 @@ namespace dlib
iosockstream( iosockstream(
const network_address& addr, const network_address& addr,
unsigned long timeout unsigned long timeout
) ) :
std::iostream(0)
{ {
tie(this); tie(this);
open(addr, timeout); open(addr, timeout);
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <streambuf> #include <streambuf>
#include <vector> #include <vector>
#include <cstdio> #include <cstdio>
#include "../algs.h"
namespace dlib namespace dlib
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment