View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0030842 | Community | OCCT:Coding | public | 2019-07-12 10:28 | 2019-10-08 10:47 |
Reporter | denix56 | Assigned To | denix56 | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | no change required | ||
Platform | Windows | OS | VC++ 2015 | ||
Product Version | 7.3.0 | ||||
Summary | 0030842: C++11 support | ||||
Description | Hi all, I wonder if OpenCascade is going to require C++11 in future releases, because all the major compilers completely support C++11 and most of them - C++14. It will definitely improve the code stricture and give some new possibilities. For example, I`ve made a patch for OSD_Thread (no TBB) to support exception handling. It requires to use std::shared_ptr and std::exception_ptr, that are C++11 features. It will be useful, because when you launch any algorithm in parallel and it throws the exception you cannot handle it correctly. | ||||
Tags | No tags attached. | ||||
Test case number | |||||
|
OCCT already uses C++11 features (deliberately). However, as some projects based on OCCT requires support of outdated compilers, we cannot force users and require fully C++11-complient compilers yet. Therefore, a limited compatibility with such compilers is currently maintained. > For example, I`ve made a patch for OSD_Thread (no TBB) to support exception handling. > It requires to use std::shared_ptr and std::exception_ptr, that are C++11 features. > It will be useful, because when you launch any algorithm in parallel and it throws the exception you cannot handle it correctly. Patches are welcome. Currently OSD_ThreadPool re-raises all catches exceptions as Standard_ProgramError, and aggregates the text of multiple exceptions if they have occurred concurrently threads (potentially they can be of different kind, it is unclear which exception should have higher priority to be re-raised for preserving type). |
|
Tnasks, for the info. I`ve also found the topics related to my problem and proposed the patch there |
|
Close the bug please |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-07-12 10:28 | denix56 | New Issue | |
2019-07-12 10:28 | denix56 | Assigned To | => kgv |
2019-07-12 10:46 | kgv | Note Added: 0085609 | |
2019-07-12 10:47 | kgv | Note Edited: 0085609 | |
2019-07-12 10:48 | kgv | Relationship added | related to 0029935 |
2019-07-16 13:43 | kgv | Assigned To | kgv => denix56 |
2019-07-16 13:43 | kgv | Status | new => feedback |
2019-08-02 13:11 | denix56 | Note Added: 0085984 | |
2019-09-04 12:24 | kgv | Relationship added | related to 0025896 |
2019-10-08 09:36 | denix56 | Note Added: 0087936 | |
2019-10-08 10:47 |
|
Status | feedback => closed |
2019-10-08 10:47 |
|
Resolution | open => no change required |