mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0032920: Coding - fix checking of std::stringstream buffer size on VS2019/C++20
Use tellp() instead of in_avail() for testing non-empty std::stringstream state.
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
void Flush(Standard_Boolean doForce = Standard_False)
|
||||
{
|
||||
myStream.flush();
|
||||
if (doForce || myStream.rdbuf()->in_avail() > 0)
|
||||
if (doForce || myStream.tellp() != std::streampos(0))
|
||||
{
|
||||
if (myMessenger)
|
||||
{
|
||||
|
Reference in New Issue
Block a user