MantisBT - Open CASCADE
View Issue Details
0030130Open CASCADE[OCCT] OCCT:Codingpublic2018-09-11 18:142019-03-02 23:49
msv 
bugmaster 
normalminor 
verifiedfixed 
MSVC 2017
[OCCT] 7.2.0 
[OCCT] 7.4.0* 
Not needed
0030130: Coding Rules - MSVC 2017 gives warnings about using of std::fpos::seekpos() within RWStl
Compilation of RWStl_Reader.cxx with MSVC 2017 gives 12 warnings like this:
1>c:\git\occt\src\rwstl\rwstl_reader.cxx(265): warning C4996: 'std::fpos<_Mbstatet>::seekpos': 
warning STL4019: The member std::fpos::seekpos() is non-Standard, and is preserved only for compatibility 
with workarounds for old versions of Visual C++. It will be removed in a future release, and in this 
release always returns 0. Please use standards-conforming mechanisms to manipulate fpos, such as conversions 
to and from streamoff, or an integral type, instead. If you are receiving this message while compiling 
Boost.IOStreams, a fix has been submitted upstream to make Boost use standards-conforming mechanisms, 
as it does for other compilers. You can define _SILENCE_FPOS_SEEKPOS_DEPRECATION_WARNING to acknowledge 
that you have received this warning, or define _REMOVE_FPOS_SEEKPOS to remove std::fpos::seekpos entirely.

1>c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.15.26726\include\iosfwd(59): 
note: see declaration of 'std::fpos<_Mbstatet>::seekpos'
Build with MSVC 14.8 (Visual Studio 2017)
No tags attached.
has duplicate 0030105closed bugmaster Community seekpos() deprecation 
child of 0028840closed bugmaster Open CASCADE Data Exchange - rewrite the STL Reader/Writer 
Issue History
2018-09-11 18:14msvNew Issue
2018-09-11 18:14msvAssigned To => abv
2018-09-11 18:18kgvRelationship addedchild of 0028840
2018-09-11 18:19kgvProduct Version7.3.0 => 7.2.0
2018-09-11 18:19kgvSummaryMSVC 2017 gives warnings about using of std::fpos::seekpos() => Coding Rules - MSVC 2017 gives warnings about using of std::fpos::seekpos() within RWStl
2018-09-12 07:08abvNote Added: 0079139
2018-09-12 07:08abvStatusnew => assigned
2018-09-12 22:41gitNote Added: 0079160
2018-09-12 22:42gitNote Added: 0079161
2018-09-13 14:34gitNote Added: 0079166
2018-09-13 14:38abvNote Added: 0079167
2018-09-13 14:38abvAssigned Toabv => msv
2018-09-13 14:38abvStatusassigned => resolved
2018-09-13 14:38abvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19914#r19914
2018-09-13 16:59msvNote Added: 0079173
2018-09-13 16:59msvAssigned Tomsv => bugmaster
2018-09-13 16:59msvStatusresolved => reviewed
2018-09-13 20:46bugmasterTest case number => Not needed
2018-09-13 20:46bugmasterStatusreviewed => tested
2018-09-15 17:11bugmasterChangeset attached => occt master 6b1800cb
2018-09-15 17:11bugmasterStatustested => verified
2018-09-15 17:11bugmasterResolutionopen => fixed
2018-09-22 18:33gitNote Added: 0079322
2019-03-02 23:49kgvRelationship addedhas duplicate 0030105

Notes
(0079139)
abv   
2018-09-12 07:08   
I confirm the problem exists with MSVC 15.8.4 (but not with MSVC 15.2)
(0079160)
git   
2018-09-12 22:41   
Branch CR30130 has been created by abv.

SHA-1: cdfcd9f6b1758c9db226cf6840abb742ff04725d


Detailed log of new commits:

Author: abv
Date: Wed Sep 12 22:38:38 2018 +0300

    0030130: Coding Rules - MSVC 2017 gives warnings about using of std::fpos::seekpos() within RWStl
    
    Use of deprecated method std::fpos::seekpos() is avoided with MSVC 14 and above.
(0079161)
git   
2018-09-12 22:42   
Branch CR30130 has been updated forcibly by abv.

SHA-1: 820813e4be6215bf4b9f67a173ce4aee4315bff5
(0079166)
git   
2018-09-13 14:34   
Branch CR30130 has been updated forcibly by abv.

SHA-1: af66e4e484ed9281f2ae4e0948b6c1dd8aafc604
(0079167)
abv   
2018-09-13 14:38   
I have pushed correction to branch CR30130, please review.

Note that the fix affects only MSVC compilers and specific use case: reading of large (> 4 GB) Ascii STL files. It has been tested manually with MSVC 10, 11, 12, 14, 14.15; no need to run general tests.
(0079173)
msv   
2018-09-13 16:59   
Reviewed.
(0079322)
git   
2018-09-22 18:33   
Branch CR30130 has been deleted by inv.

SHA-1: af66e4e484ed9281f2ae4e0948b6c1dd8aafc604