apolukhin / Boost.DLL

Library for comfortable work with DLL and DSO
https://boost.org/libs/dll
109 stars 69 forks source link

Can we add BOOST_DLL_USE_STD to specifiy if we want to use boost version or std version of library #48

Closed LogicFan closed 3 years ago

LogicFan commented 4 years ago

My thought is we could have a BOOST_DLL_USE_STD macro to control if we want to use the boost version or std version of the following:

The way I am thinking is that we could define boost::dll::shared_ptr in config.hpp and use macro to control if we want to use the std version or the boost version, similar to how the boost::dll::fs is done.

Just want to ask is this an acceptable solution, I could do this if this idea is approved.

apolukhin commented 4 years ago

How about just putting that functionality into existing BOOST_DLL_USE_STD_FS macro? If C++17's std::filesystem::path is available, then all the C++11 stuff should be already available on the platform