Skip to content

Commit f5ee994

Browse files
committed
small conformance fix and added screenshot of timedoc
1 parent 3899ee2 commit f5ee994

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

art/timedoc_screenshot.png

40.4 KB
Loading

include/CobaltFusion/hstream.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ template <class Elem, class Tr = std::char_traits<Elem>, class Alloc = std::allo
1616
class basic_handlebuf : public std::basic_streambuf<Elem, Tr>
1717
{
1818
public:
19-
explicit basic_handlebuf(HANDLE handle, std::size_t buff_sz = 256, std::size_t put_back = 8) :
19+
using _int_type = typename std::basic_streambuf<Elem, Tr>::int_type;
20+
21+
explicit basic_handlebuf(HANDLE handle, std::size_t buff_sz = 256, std::size_t put_back = 8) :
2022
m_handle(handle),
2123
m_put_back(std::max<std::size_t>(put_back, 1)),
2224
m_readBuffer(std::max(buff_sz, m_put_back) + m_put_back)
@@ -39,7 +41,7 @@ class basic_handlebuf : public std::basic_streambuf<Elem, Tr>
3941
return 0;
4042
}
4143

42-
virtual int_type overflow(int_type c) override
44+
virtual _int_type overflow(_int_type c) override
4345
{
4446
if (c == std::basic_streambuf<Elem, Tr>::traits_type::eof())
4547
return c;
@@ -50,7 +52,7 @@ class basic_handlebuf : public std::basic_streambuf<Elem, Tr>
5052
return c;
5153
}
5254

53-
virtual int_type underflow() override
55+
virtual _int_type underflow() override
5456
{
5557
if (gptr() < egptr()) // buffer not exhausted
5658
return std::basic_streambuf<Elem, Tr>::traits_type::to_int_type(*gptr());

0 commit comments

Comments
 (0)