diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b3bc0d..154a2d4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Version 86: * Use custom variant * Update README.md * Add local-travis.sh +* Use winapi -------------------------------------------------------------------------------- diff --git a/extras/boost/beast/unit_test/dstream.hpp b/extras/boost/beast/unit_test/dstream.hpp index 9ebf5eb1..fa09b89a 100644 --- a/extras/boost/beast/unit_test/dstream.hpp +++ b/extras/boost/beast/unit_test/dstream.hpp @@ -19,7 +19,7 @@ #ifdef BOOST_WINDOWS #include -//#include +#include #endif namespace boost { @@ -36,8 +36,8 @@ class dstream_buf { using ostream = std::basic_ostream; - bool dbg_; ostream& os_; + bool dbg_; template void write(T const*) = delete; @@ -45,14 +45,14 @@ class dstream_buf void write(char const* s) { if(dbg_) - /*boost::detail::winapi*/::OutputDebugStringA(s); + boost::detail::winapi::OutputDebugStringA(s); os_ << s; } void write(wchar_t const* s) { if(dbg_) - /*boost::detail::winapi*/::OutputDebugStringW(s); + boost::detail::winapi::OutputDebugStringW(s); os_ << s; } @@ -60,7 +60,7 @@ public: explicit dstream_buf(ostream& os) : os_(os) - , dbg_(/*boost::detail::winapi*/::IsDebuggerPresent() != 0) + , dbg_(boost::detail::winapi::IsDebuggerPresent() != 0) { }