Opened 6 years ago

Closed 4 years ago

#12265 closed Feature Requests (duplicate)

Request to use standard objects if available

Reported by: lcarreon@… 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:

  1. boost::filesystem::path
  2. boost::shared_ptr
  3. boost::function

Can these be converted to use the standard versions if they are available on the compiler being used. For example, use these:

  1. std::experimental::filesystem::path or std::filesystem::path (C++17)
  2. std::shared_ptr
  3. std::function

Change History (4)

comment:1 by lcarreon@…, 6 years ago

Sorry, boost::function is not used by the library internally therefore there is no need to convert it to std::function.

comment:2 by Michel Morin, 6 years ago

Owner: set to Antony Polukhin

comment:3 by Antony Polukhin, 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 Antony Polukhin, 4 years ago

Resolution: duplicate
Status: newclosed

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)

Note: See TracTickets for help on using tickets.