|Anonymous | Login||2019-07-19 10:44 MSK|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0030842||Community||[OCCT] OCCT:Coding||public||2019-07-12 10:28||2019-07-17 10:46|
|Platform||Windows||OS||VC++ 2015||OS Version||64 bit|
|Product Version||[OCCT] 7.3.0|
|Target Version||Fixed in Version|
|Summary||0030842: C++11 support|
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|
edited on: 2019-07-12 10:47
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).
|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||View Revisions|
|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|
|Copyright © 2000 - 2019 MantisBT Team|