View Issue Details

IDProjectCategoryView StatusLast Update
0032599CommunityOCCT:Codingpublic2021-10-21 19:59
ReporterBenjaminBihler Assigned Tobugmaster  
PrioritynormalSeveritymajor 
Status closedResolutionno change required 
PlatformAOSL 
Product Version7.6.0 
Target Version7.6.0 
Summary0032599: Coding Rules - Header file leads to compilation error
DescriptionI am working with commit 3be25c11705b931ff623f372a24e3e1b2203899c. Including the file Adaptor3d_HSurface.hxx leads to several compilation errors with g++ 10.2. Some of them are:

Adaptor3d_HSurface.lxx:128:25: error: could not convert 'Adaptor3d_Surface::UTrim(((Standard_Real)First), ((Standard_Real)Last), ((Standard_Real)Tol))' from 'handle<Adaptor3d_Surface>' to 'handle<Adaptor3d_HSurface>'

Adaptor3d_HSurface.lxx:464:30: error: could not convert 'Adaptor3d_Surface::BasisCurve()' from 'handle<Adaptor3d_Curve>' to 'handle<Adaptor3d_HCurve>'

Adaptor2d_HCurve2d.lxx:77:24: error: could not convert 'Adaptor2d_Curve2d::Trim(((Standard_Real)First), ((Standard_Real)Last), ((Standard_Real)Tol))' from 'handle<Adaptor2d_Curve2d>' to 'handle<Adaptor2d_HCurve2d>'
Steps To ReproduceInclude file "Adaptor3d_HSurface.hxx" in some main.cpp and compile.
TagsNo tags attached.
Test case number

Relationships

child of 0028966 closedbugmaster Coding Rules - remove Adaptor2d_HCurve2d, Adaptor3d_HCurve and Adaptor3d_HSurface classes 

Activities

kgv

2021-09-30 12:23

developer   ~0104443

Last edited: 2021-09-30 12:26

Benjamin, Adaptor3d_HSurface.hxx does no more exist in development version since 0028966.
H-versions have been merged into non-H classes, so that duplicating hierarchies have been eliminated with some code clean up.
https://dev.opencascade.org/doc/overview/html/occt__upgrade.html#upgrade_760_handle_adaptors

Please fill free to comment if you still have some issues with these classes in forthcoming OCCT 7.6.0.

kgv

2021-09-30 12:28

developer   ~0104444

Maybe you have some dead header files from old OCCT in your local setup.

BenjaminBihler

2021-09-30 12:48

developer   ~0104445

Kirill, you are right, the file was from an old installation. :-( Thank you.

Issue History

Date Modified Username Field Change
2021-09-30 11:50 BenjaminBihler New Issue
2021-09-30 11:50 BenjaminBihler Assigned To => mpv
2021-09-30 12:05 mpv Assigned To mpv => msv
2021-09-30 12:05 mpv Category OCCT:Application Framework => OCCT:Modeling Data
2021-09-30 12:05 kgv Assigned To msv => mpv
2021-09-30 12:05 kgv Category OCCT:Modeling Data => OCCT:Coding
2021-09-30 12:05 kgv Product Version Unscheduled => 7.6.0
2021-09-30 12:05 kgv Summary Header file leads to compilation error => Coding Rules - Header file leads to compilation error
2021-09-30 12:21 kgv Relationship added child of 0028966
2021-09-30 12:23 kgv Note Added: 0104443
2021-09-30 12:25 kgv Note Edited: 0104443
2021-09-30 12:26 kgv Assigned To mpv => BenjaminBihler
2021-09-30 12:26 kgv Status new => feedback
2021-09-30 12:26 kgv Resolution open => no change required
2021-09-30 12:26 kgv Product Version 7.6.0 => 7.5.0
2021-09-30 12:26 kgv Note Edited: 0104443
2021-09-30 12:28 kgv Note Added: 0104444
2021-09-30 12:48 BenjaminBihler Note Added: 0104445
2021-09-30 14:10 kgv Assigned To BenjaminBihler => bugmaster
2021-09-30 14:10 kgv Product Version 7.5.0 => 7.6.0
2021-10-21 19:59 bugmaster Status feedback => closed