From ad8c5f9f7f0ba0b59c3acb0ec7389d702bfc34b0 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sun, 23 Jul 2017 17:33:24 -0700 Subject: [PATCH] Use winapi --- CHANGELOG.md | 1 + extras/boost/beast/unit_test/dstream.hpp | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) 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) { }