Opened 6 years ago
Closed 4 years ago
#12265 closed Feature Requests (duplicate)
Request to use standard objects if available
Reported by: | Owned by: | Antony Polukhin | |
---|---|---|---|
Milestone: | To Be Determined | Component: | None |
Version: | Boost 1.61.0 | Severity: | Not Applicable |
Keywords: | Cc: |
Description
The Boost.DLL library uses the following objects:
- boost::filesystem::path
- boost::shared_ptr
- boost::function
Can these be converted to use the standard versions if they are available on the compiler being used. For example, use these:
- std::experimental::filesystem::path or std::filesystem::path (C++17)
- std::shared_ptr
- std::function
Change History (4)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Owner: | set to |
---|
comment:3 by , 6 years ago
It's the Boost policy to use Boost libraries if possible. Switching between Boost/Standard libraries depending on the compiler version or platform is not what people want. Such switching will break users code.
If you wish to use Standard versions depending on some preprocessor macro (like BOOD_DLL_USE_STANDARD_LIBRARY_CLASSES=1), then I won't have time in the nearest future to do it myself, but I'm open to pull requests.
comment:4 by , 4 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closing in favour of https://github.com/apolukhin/Boost.DLL/issues/40 (Boost migrates from trackk to github right now, so this issue will be hosted on github now)
Sorry, boost::function is not used by the library internally therefore there is no need to convert it to std::function.