View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033157 | Community | OCCT:Tests | public | 2022-10-04 19:01 | 2022-10-04 19:01 |
Reporter | galbramc | Assigned To | apn | ||
Priority | normal | Severity | block | ||
Status | new | Resolution | open | ||
Platform | Linux | OS | Ubuntu 20.04 | ||
Summary | 0033157: Compile error with OCCT 7.7.0 Beta | ||||
Description | There appears to be a missing include for <limits>. Using Ubuntu 22.04 with GNU 11.2 with the occt repo with the V7_7_0_beta tag. occt/src/ViewerTest/ViewerTest_CmdParser.cxx:53:80: error: ‘numeric_limits’ is not a member of ‘std’ 53 | const std::size_t ViewerTest_CmdParser::THE_UNNAMED_COMMAND_OPTION_KEY = (std::numeric_limits<std::size_t>::max)(); | ^~~~~~~~~~~~~~ occt/src/ViewerTest/ViewerTest_CmdParser.cxx:53:106: error: expected primary-expression before ‘>’ token 53 | const std::size_t ViewerTest_CmdParser::THE_UNNAMED_COMMAND_OPTION_KEY = (std::numeric_limits<std::size_t>::max)(); | ^ occt/src/ViewerTest/ViewerTest_CmdParser.cxx:53:109: error: ‘::max’ has not been declared; did you mean ‘std::max’? 53 | const std::size_t ViewerTest_CmdParser::THE_UNNAMED_COMMAND_OPTION_KEY = (std::numeric_limits<std::size_t>::max)(); | ^~~ | std::max In file included from /usr/include/c++/11/algorithm:62, from /home/jenkins/util/ESP/occt/src/ViewerTest/ViewerTest_CmdParser.cxx:22: /usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here 3467 | max(initializer_list<_Tp> __l, _Compare __comp) | ||||
Steps To Reproduce | Compile OCCT 7.7.0 beta (tag V7_7_0_beta) with cmake variable BUILD_MODULE_Draw=ON. | ||||
Tags | No tags attached. | ||||
Test case number | |||||