mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +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:
parent
82598ec0f2
commit
e976df2329
@ -72,7 +72,7 @@ public:
|
|||||||
void Flush(Standard_Boolean doForce = Standard_False)
|
void Flush(Standard_Boolean doForce = Standard_False)
|
||||||
{
|
{
|
||||||
myStream.flush();
|
myStream.flush();
|
||||||
if (doForce || myStream.rdbuf()->in_avail() > 0)
|
if (doForce || myStream.tellp() != std::streampos(0))
|
||||||
{
|
{
|
||||||
if (myMessenger)
|
if (myMessenger)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user