Skip to content

Commit 9d2cff8

Browse files
committed
C++20 fixes for OUtputDebugString() wrapper
1 parent 9b2f11d commit 9d2cff8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/cinder/msw/OutputDebugStringStream.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class basic_debugbuf :
4949

5050
protected:
5151
int sync() {
52-
output_debug_string(str().c_str());
53-
str(std::basic_string<CharT>()); // Clear the string buffer
52+
output_debug_string(this->str().c_str());
53+
this->str(std::basic_string<CharT>()); // Clear the string buffer
5454

5555
return 0;
5656
}
@@ -81,7 +81,7 @@ class basic_dostream :
8181
(new basic_debugbuf<CharT, TraitsT>()) {}
8282
~basic_dostream()
8383
{
84-
delete rdbuf();
84+
delete std::basic_ostream<CharT, TraitsT>::rdbuf();
8585
}
8686
};
8787

0 commit comments

Comments
 (0)