View Issue Details

IDProjectCategoryView StatusLast Update
0030130Open CASCADEOCCT:Codingpublic2019-04-30 12:14
ReportermsvAssigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
PlatformMSVC 2017 
Product Version7.2.0 
Target Version7.4.0Fixed in Version7.4.0 
Summary0030130: Coding Rules - MSVC 2017 gives warnings about using of std::fpos::seekpos() within RWStl
DescriptionCompilation 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'
Steps To ReproduceBuild with MSVC 14.8 (Visual Studio 2017)
TagsNo tags attached.
Test case numberNot needed

Relationships

has duplicate 0030105 closedbugmaster Community seekpos() deprecation 
related to 0030654 closedbugmaster Community Visualization - AIS_InteractiveContext::MoveTo() failed to detect objects when using VS2017 
child of 0028840 closedbugmaster Open CASCADE Data Exchange - rewrite the STL Reader/Writer 

Activities

abv

2018-09-12 07:08

manager   ~0079139

I confirm the problem exists with MSVC 15.8.4 (but not with MSVC 15.2)

git

2018-09-12 22:41

administrator   ~0079160

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.

git

2018-09-12 22:42

administrator   ~0079161

Branch CR30130 has been updated forcibly by abv.

SHA-1: 820813e4be6215bf4b9f67a173ce4aee4315bff5

git

2018-09-13 14:34

administrator   ~0079166

Branch CR30130 has been updated forcibly by abv.

SHA-1: af66e4e484ed9281f2ae4e0948b6c1dd8aafc604

abv

2018-09-13 14:38

manager   ~0079167

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.

msv

2018-09-13 16:59

developer   ~0079173

Reviewed.

git

2018-09-22 18:33

administrator   ~0079322

Branch CR30130 has been deleted by inv.

SHA-1: af66e4e484ed9281f2ae4e0948b6c1dd8aafc604

Related Changesets

occt: master 6b1800cb

2018-09-12 19:38:38

abv


Committer: bugmaster Details Diff
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 11 (Visual Studio 2012) and above.
Affected Issues
0030130
mod - src/RWStl/RWStl_Reader.cxx Diff File

Issue History

Date Modified Username Field Change
2018-09-11 18:14 msv New Issue
2018-09-11 18:14 msv Assigned To => abv
2018-09-11 18:18 kgv Relationship added child of 0028840
2018-09-11 18:19 kgv Product Version 7.3.0 => 7.2.0
2018-09-11 18:19 kgv Summary MSVC 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:08 abv Note Added: 0079139
2018-09-12 07:08 abv Status new => assigned
2018-09-12 22:41 git Note Added: 0079160
2018-09-12 22:42 git Note Added: 0079161
2018-09-13 14:34 git Note Added: 0079166
2018-09-13 14:38 abv Note Added: 0079167
2018-09-13 14:38 abv Assigned To abv => msv
2018-09-13 14:38 abv Status assigned => resolved
2018-09-13 14:38 abv Steps to Reproduce Updated
2018-09-13 16:59 msv Note Added: 0079173
2018-09-13 16:59 msv Assigned To msv => bugmaster
2018-09-13 16:59 msv Status resolved => reviewed
2018-09-13 20:46 bugmaster Test case number => Not needed
2018-09-13 20:46 bugmaster Status reviewed => tested
2018-09-15 17:11 bugmaster Changeset attached => occt master 6b1800cb
2018-09-15 17:11 bugmaster Status tested => verified
2018-09-15 17:11 bugmaster Resolution open => fixed
2018-09-22 18:33 git Note Added: 0079322
2019-03-02 23:49 kgv Relationship added has duplicate 0030105
2019-04-30 12:14 kgv Relationship added related to 0030654