You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::streamoff offset = pos.operatorstd::streamoff( ) - _FPOSOFF( position );
could be change to
std::streamoff offset = 0;
Reason:
When pos.operator std::streamoff() is called, the std::streampos object pos is actually converted to the std::streamoff type to obtain its offset in the stream. And _FPOSOFF(position) is to get the offset of the fpos_t object position in the stream.
In this code, the calculate the offset of pos relative to position, but because the definition of _FPOSOFF is no longer available, and since the result of _FPOSOFF(position) is the same as pos.operator std::streamoff().
Related PR: microsoft/STL#4606 microsoft/vcpkg#38666
If you have other solotions, please ping me. I will apply it to vcpkg for this issue. :)
The text was updated successfully, but these errors were encountered:
I am the maintainer of vcpkg and we found above error when we test this port in an internal version of Visual Studio.
This error due to
_FPOSOFF'
has been completely deprecated after the standard MSVC-PR-132953 .For fixing this issue: we think bellow code
OpenSceneGraph/src/osgPlugins/osga/OSGA_Archive.cpp
Line 80 in 2e4ae2e
could be change to
Reason:
When
pos.operator std::streamoff()
is called, thestd::streampos
objectpos
is actually converted to thestd::streamoff
type to obtain itsoffset
in the stream. And_FPOSOFF(position)
is to get theoffset
of thefpos_t
object position in the stream.In this code, the calculate the
offset
ofpos
relative to position, but because the definition of_FPOSOFF
is no longer available, and since the result of_FPOSOFF(position)
is the same aspos.operator std::streamoff()
.Related PR:
microsoft/STL#4606
microsoft/vcpkg#38666
If you have other solotions, please ping me. I will apply it to vcpkg for this issue. :)
The text was updated successfully, but these errors were encountered: