Commit Graph

802 Commits

Author SHA1 Message Date
R. Savchenko de905f331a smart_library correct constructors from shared_library (#114) boost-1.92.0.beta1 2026-07-07 12:23:51 +03:00
Antony Polukhin 3261fbf2aa Avoid dynamic initialization of plugin variable in tutorial1 (#113) 2026-06-02 23:10:55 +03:00
Fedor Osetrov 9cb8a366a7 feat boost.dll: support import std (#112)
The PR adds support `import std` and CI tests for the usage
2026-05-24 23:16:33 +03:00
Fedor Osetrov 62f8549933 feat boost.dll: support C++20 modules (#111)
This PR introduce `boost.dll` C++ module with usage example and CI tests
2026-05-24 08:03:05 +03:00
Fedor Osetrov 079d73ef19 feat cmake: add all tests to cmake (#110)
Add all tests to cmake
2026-05-15 21:27:35 +03:00
Antony Polukhin a719764869 Update copyright years boost-1.91.0.beta1 boost-1.91.0 2026-01-04 09:53:05 +03:00
dependabot[bot] 962a4d56b7 Bump actions/checkout from 2 to 6 (#73)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-26 22:04:51 +03:00
Antony Polukhin 64bc030a42 Add dependabot 2025-12-24 20:19:12 +03:00
Antony Polukhin 2751e5768a Fix "size" variable shadowing (#72)
Fixes: https://github.com/boostorg/dll/issues/95
boost-1.90.0.beta1 boost-1.90.0
2025-10-24 20:06:05 +03:00
Antony Polukhin bc8657d8b3 Fix issues with std::error_code being passed to boost::system::error_code& (#107) 2025-10-24 19:12:18 +03:00
Yury Bura c6d1c7f977 Fix build with CMake (#103) 2025-08-26 13:02:43 +03:00
Antony Polukhin 4105c3a8f8 Test CMake in CI and add initial CMakeLists.txt for tests (#100) boost-1.89.0 2025-06-27 20:39:11 +03:00
Antony Polukhin 67ded46a03 Merge remote-tracking branch 'luoh/develop' into develop 2025-06-11 16:09:12 +03:00
Antony Polukhin a2281ce546 Update OSes in CI (#99) 2025-06-11 15:04:22 +03:00
Antony Polukhin d662bcbb67 Fix usage of missing variable (#98)
Fixes https://github.com/boostorg/dll/issues/96
2025-06-11 09:59:25 +03:00
Antony Polukhin 67ecfd32d6 Minor tweak to restart CI 2025-06-10 21:34:44 +03:00
Antony Polukhin fac620f43d Fix inspect tool builds in CI (#97) 2025-06-10 20:24:18 +03:00
Yury Bura 798bb044d4 Add BOOST_DLL_USE_STD_FS cmake option (#94) 2025-06-10 18:47:05 +03:00
Luohao Wang 3663b87e67 Remove __attribute__((weak)) on Cygwin which causes unsuccessful export 2025-06-03 18:05:35 +08:00
Luohao Wang 2ebfa68bfb Fix missing of <link.h> on Cygwin 2025-06-03 14:38:53 +08:00
Antony Polukhin c30df76b04 Fix MacOS compilation on C++11 and C++14 (#93)
Fixes https://github.com/boostorg/dll/issues/92
boost-1.88.0
2025-03-31 17:34:47 +03:00
Antony Polukhin 013633d375 Switch to std::shared_ptr from boost::shared_ptr and provide a BOOST_… (#90)
…DLL_USE_BOOST_SHARED_PTR compatibility macro to restore the old behavior

Fixes https://github.com/boostorg/dll/issues/75
boost-1.88.0.beta1
2025-01-30 21:42:48 +03:00
Antony Polukhin 841e188556 More warnings about smart* parts of the library 2025-01-28 13:01:30 +03:00
Antony Polukhin 753af610e9 Document why RTLD_NODELETE is missing and why there is no .release() method. Add info on possible workaround and what to do if it does not help
Closes https://github.com/boostorg/dll/issues/74
Closes https://github.com/boostorg/dll/issues/68
2025-01-16 19:04:13 +03:00
Antony Polukhin e2ca8d9ce8 Update docs
Fixes: https://github.com/boostorg/dll/issues/51
2025-01-14 21:46:32 +03:00
Antony Polukhin cb815af057 Add missing override into example 2025-01-10 22:10:45 +03:00
Antony Polukhin 002fd888ef Fix conversion warning 2025-01-10 22:01:24 +03:00
Antony Polukhin 25393d3484 Update copyright years 2025-01-05 19:29:49 +03:00
Antony Polukhin d4c93c501a More tests, docs and fixes for library_info (#89) 2025-01-05 19:24:06 +03:00
Antony Polukhin e7ad58bfb9 Use std::thread in tests (#88) 2024-12-30 14:34:53 +03:00
Antony Polukhin 816955cc8d Modernize codebase (#87) 2024-12-28 09:01:36 +03:00
Antony Polukhin f71d8e7bd7 Fix "Factory method in plugin" example and modernize all the examples (#86)
Fixes https://github.com/apolukhin/Boost.DLL/issues/62
2024-12-22 13:15:43 +03:00
Antony Polukhin 96ee80d134 Remove a confusing comment. The next example shows the proper usage of BOOST_DLL_ALIAS
Fixes https://github.com/apolukhin/Boost.DLL/issues/54
2024-12-22 11:01:30 +03:00
Antony Polukhin fdb48ba8f4 Add test from bugreport, provide compile time diagnostics for such cases (#85)
Fixes https://github.com/apolukhin/Boost.DLL/issues/47
2024-12-22 10:32:29 +03:00
Antony Polukhin b7713ead36 Fix buffer resizing on Windows (#84)
Fixes https://github.com/apolukhin/Boost.DLL/issues/63
2024-12-21 16:35:03 +03:00
Antony Polukhin 237de51eb2 Link with dl library in CMake builds if it is available
Fixes https://github.com/boostorg/dll/issues/67
2024-12-21 15:35:07 +03:00
Antony Polukhin 9d452d1459 Add smoke test for shared_library construction from native handler and cleanup the program_location implementation (fixes https://github.com/boostorg/dll/issues/70) (#83) 2024-12-21 15:09:52 +03:00
Antony Polukhin 7ecf45890c Merge pull request #82 from boostorg/construct-from-native
Add constructor taking native_handle_t
2024-12-21 11:30:52 +03:00
Antony Polukhin 7cbc0d4394 Merge branch 'develop' of github.com:boostorg/dll into HEAD 2024-12-20 16:53:55 +03:00
Antony Polukhin 15d8fb4377 Fix function names retrieval for particular section in PR created by clang-win 2024-12-20 00:21:11 +03:00
Antony Polukhin e6304f480b Make smart library work in C++11 mode (#80) 2024-12-19 21:47:04 +03:00
Antony Polukhin 3a903d2bb3 Avoid Boost.Spirit usage (#79) 2024-12-18 23:31:58 +03:00
Antony Polukhin 0d984c6604 Use Standard Library type traits (#78) 2024-12-17 16:01:38 +03:00
Antony Polukhin 06bc4c8b4b Modernize code and drop Boost.Function dependency (#77) 2024-12-17 13:49:58 +03:00
Antony Polukhin c66dfab77f Switch to std::error_code from boost::system::error_code where possible (#76) 2024-12-17 12:07:38 +03:00
Antony Polukhin 46da0d1bac Require C++17 for the smart* part of the library 2024-12-15 20:20:55 +03:00
Antony Polukhin 29a15f642b Do not use boost::move in examples 2024-12-15 19:01:23 +03:00
Antony Polukhin b42fdd8634 Remove remaining parts of Boost.Move 2024-12-15 18:46:38 +03:00
Antony Polukhin 52e4837f3c Drop dependency on Boost.Move 2024-12-15 18:13:51 +03:00
Vinícius dos Santos Oliveira dab63b80a8 Add constructor taking native_handle_t
Calls to dlopen() will always fail on FreeBSD if ambient authority is
disabled (i.e. process is in capsicum mode). For these cases, FreeBSD
offers fdlopen(). The new constructor allows the user to explicitly call
fdlopen() and then use Boost.DLL to manage the loaded plugin.

Android's libc (Bionic) also has fdlopen(), but under a different name:
android_dlopen_ext().

As Linux implements a sandboxing model closer to Capsicum (that's
already planned in the roadmap for the Landlock subsystem), similar
restrictions will hit glibc and we might see fdlopen() in glibc as well.
2024-08-25 18:04:11 -03:00