Tidy up dstream for existing Boost versions

This commit is contained in:
Vinnie Falco
2017-07-10 13:25:49 -07:00
parent a49b442969
commit fa3c256883
2 changed files with 5 additions and 4 deletions

View File

@ -7,6 +7,7 @@ Version 78:
* Header file tidying * Header file tidying
* Tidy up FieldsReader doc * Tidy up FieldsReader doc
* Add Boost.Locale utf8 benchmark comparison * Add Boost.Locale utf8 benchmark comparison
* Tidy up dstream for existing Boost versions
HTTP: HTTP:

View File

@ -17,7 +17,7 @@
#ifdef BOOST_WINDOWS #ifdef BOOST_WINDOWS
#include <boost/detail/winapi/basic_types.hpp> #include <boost/detail/winapi/basic_types.hpp>
#include <boost/detail/winapi/debugapi.hpp> //#include <boost/detail/winapi/debugapi.hpp>
#endif #endif
namespace beast { namespace beast {
@ -42,14 +42,14 @@ class dstream_buf
void write(char const* s) void write(char const* s)
{ {
if(dbg_) if(dbg_)
boost::detail::winapi::OutputDebugStringA(s); /*boost::detail::winapi*/::OutputDebugStringA(s);
os_ << s; os_ << s;
} }
void write(wchar_t const* s) void write(wchar_t const* s)
{ {
if(dbg_) if(dbg_)
boost::detail::winapi::OutputDebugStringW(s); /*boost::detail::winapi*/::OutputDebugStringW(s);
os_ << s; os_ << s;
} }
@ -57,7 +57,7 @@ public:
explicit explicit
dstream_buf(ostream& os) dstream_buf(ostream& os)
: os_(os) : os_(os)
, dbg_(boost::detail::winapi::IsDebuggerPresent() != 0) , dbg_(/*boost::detail::winapi*/::IsDebuggerPresent() != 0)
{ {
} }