MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0032352Open CASCADE[OCCT] OCCT:Codingpublic2021-05-10 15:302021-05-10 15:31
Reporterkgv 
Assigned Tokgv 
PrioritylowSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.6.0* 
Target Version[OCCT] 7.6.0*Fixed in Version 
Summary0032352: Coding Rules - clean up code from compatibility hacks with pre-C++11 compilers
DescriptionOCCT defines several hacks for supporting obsolete C++ compilers like VS2008 not supporting C++11 features like:
- Using std::auto_ptr instead of std::unique_ptr;
- Using opencascade::std::shared_ptr instead of std::shared_ptr (hack for std::tr1);
- Using opencascade::std::mt19937 instead of std::mt19937;
- Using opencascade::std::enable_if/is_base_of/is_same instead of std::enable_if/is_base_of/is_same;
- Using OCCT_NO_RVALUE_REFERENCE to disable move-semantic methods;
- Typedefs to fixed-size types instead of including "stdint.h";

These workarounds are no more necessary with dropped support of VS2008.

See code like this:
#if (defined(_MSC_VER) && (_MSC_VER < 1600))
TagsNo tags attached.
Test case number
Attached Files

- Relationships
child of 0032270verifiedbugmaster Configuration - Removing VS 2008 from maintenance 
child of 0028824closedbugmaster Possibility to build OCCT 7.1.0 and above using Visual Studio 2008 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-05-10 15:30 kgv New Issue
2021-05-10 15:30 kgv Assigned To => kgv
2021-05-10 15:31 kgv Relationship added child of 0032270
2021-05-10 15:31 kgv Relationship added child of 0028824
2021-05-10 15:31 kgv Priority normal => low


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker