83 Commits

Author SHA1 Message Date
Antony Polukhin 3312581e77 Simpilfy code (#39) 2026-01-12 20:29:26 +03:00
Antony Polukhin fbaec2978b Update copyright years 2026-01-02 13:35:47 +03:00
Antony Polukhin 306d8a1b18 Implement initial version of C++20 module boost.any (#30)
`#include <boost/any...` is now implicitly does `import boost.any` if the modules are supported 
All the library internals now have unconditional module level linkage.

Significant differences from https://anarthal.github.io/cppblog/modules3:
* `BOOST_ANY_USE_STD_MODULE` macro switch for `import std;` / `includes` while building module. This allows to use module in C++20 and even without usable  `std` module.
2025-05-12 17:54:42 +03:00
Antony Polukhin 8292e18318 Update copyright years 2025-01-05 19:35:57 +03:00
Antony Polukhin bb9d96cc55 Use "using" instead of "typedef" 2024-12-17 13:49:24 +03:00
Antony Polukhin f53cd5d269 Update copyright years 2024-01-07 13:49:50 +03:00
Antony Polukhin f104bceb32 Drop C++03 and C++98 support (#26) 2023-09-04 09:37:22 +03:00
Antony Polukhin 9bbc302378 unique_any now could take over ownership of boost::any content 2023-05-14 19:43:19 +03:00
Antony Polukhin a42f3d750c add a C++03 deprecation warning 2023-05-14 17:44:07 +03:00
Antony Polukhin 20deb94830 fix typos 2023-05-14 17:28:09 +03:00
Antony Polukhin 4938ce0ccd use Doxygen for documenting the library 2023-05-09 18:48:43 +03:00
Antony Polukhin fd44ca3f6b add Doxygen docs to the basic_any and add tests on const unique_any (refs #24) 2023-05-09 15:54:02 +03:00
Antony Polukhin bf3c89b241 fix typos and add more docs for unique_any (refs #24) 2023-05-09 11:09:25 +03:00
Antony Polukhin f02e2834a6 prepare for the Doxygen docs and add some unique_any docs (refs #24) 2023-05-09 10:28:48 +03:00
Antony Polukhin e8374f7391 more tests and better diagnostics for unique_any (refs #24) 2023-05-08 09:58:20 +03:00
Antony Polukhin a090bf3110 more fixes and tests for unique_any (refs #24) 2023-05-07 16:51:02 +03:00
Antony Polukhin 939c3382f3 more tests and fixes for unique_any (refs #24) 2023-05-07 10:47:56 +03:00
Antony Polukhin 55160ab22a initial fixes and tests for the unique_any (refs #24) 2023-05-06 21:13:28 +03:00
Antony Polukhin 89d456572b Update copyright years 2023-01-19 09:58:55 +03:00
Michael Ford f9a9daf5c3 refactor: use core/enable_if over utility/enable_if
The later is deprecated.
2022-12-04 15:31:00 +00:00
Antony Polukhin 06eaa82dbf Do not use deprecated BOOST_NO_DEFAULTED_FUNCTIONS macro 2022-01-30 14:52:09 +03:00
Antony Polukhin d1b242e85d update copyright years 2022-01-30 12:46:03 +03:00
Antony Polukhin 3544bb8eea fix directories 2021-04-17 21:44:13 +03:00
Antony Polukhin 37125869a4 more polishings 2021-04-11 12:53:43 +03:00
Antony Polukhin 8db591c367 minor formatting fixes and more assertions added 2021-04-10 22:25:50 +03:00
Antony Polukhin a978f9ab48 diagnose assignments of basic_anys with different template parameters 2021-04-09 21:50:41 +03:00
Antony Polukhin b85819ac30 diagnose attempts to write one any into another 2021-04-09 21:09:07 +03:00
Antony Polukhin 70c977d239 fixes, tests, cleanups and polishings 2021-04-06 20:40:40 +03:00
Antony Polukhin 4fe63b3b6a fix tests for C++03 2021-04-06 09:53:59 +03:00
Antony Polukhin 8efcc65e0b Merge branch 'develop' of github.com:boostorg/any into antoshkka/rarutyun-tweaks 2021-04-06 09:30:19 +03:00
Ruslan Arutyunyan 371c45e43a Add more tests for basic any. basic_any_cast -> any_cast 2021-03-27 21:11:14 +03:00
Antony Polukhin 4866f58c42 update copyright years 2021-01-03 12:39:40 +03:00
Antony Polukhin 1483752ab6 Add missing BOOST_OVERRIDE (fixes #13) 2020-05-03 16:19:58 +03:00
Antony Polukhin 05c367488d avoid <algorithm> inclusion and update years in docs 2020-01-30 00:18:14 +03:00
Antony Polukhin 4946bdec5d Fix MSVC build 2020-01-22 15:31:52 +03:00
Antony Polukhin 208178f43e Fix warning 2020-01-22 15:26:32 +03:00
Ruslan Arutyunyan cceee36378 Fix review comments 2019-12-01 22:34:32 +03:00
Ruslan Arutyunyan 6e39562a9f Add new class template basic_any.
Modification:
    Add new class template boost::basic_any with small object optimization
    and virtual calls remplacement.
    Adopt existing boost::any tests for new functionality
2019-06-20 00:35:07 +03:00
Antony Polukhin 8e24fabe52 Minor tweaks for the boost::any
* allow static initialization of the default contructed boost::any
* fix performance regression on a compilers without move-semantics
* use `final` if possible
* do not make more symbols visible than required
2019-06-19 23:41:13 +03:00
Ruslan Arutyunyan 6227b33a67 Prototype of removing virtual calls and heap usage for small objects 2019-05-14 15:37:09 +03:00
Antony Polukhin 17ea66e415 Revert "Fix visibility issue from #10" as it increases the binary size and doese not solve the issue (issue solved by 40a0e4b896).
This reverts commit 6684551de3.
2019-05-07 11:27:05 +03:00
Antony Polukhin 6684551de3 Fix visibility issue from #10 2019-04-25 23:10:31 +03:00
Antony Polukhin bfb7d0172c Update CI scripts to avoid clone issues and update copyright years 2019-01-10 23:35:25 +03:00
Antony Polukhin 40a0e4b896 Deal with visibility issue
Sanitizers complain on memory leaks if some projects build with hidden visibility (false positives?)
2018-10-27 08:46:04 +03:00
luz.paz 9108a17559 any: misc-typos
Found via `codespell -q 3`
2018-09-23 15:43:16 -04:00
Peter Dimov 099cde4d6a Remove dependency on MPL 2018-09-12 19:45:13 +03:00
Antony Polukhin 878b58355a Suppress MSVC warning 2017-02-08 22:18:34 +03:00
Antony Polukhin 7260f203d1 Use boost::addressof instead of directly taking the address (trac 12615) 2017-01-04 12:42:24 +03:00
Antony Polukhin e6d8a49e95 Do not include using double quotes (trac 12053) 2017-01-02 13:05:18 +03:00
jzmaddock 64150336e9 Fix header includes
The header fails to include mpl/if.hpp even though it uses it - issue exposed by type_traits rewrite.
2015-01-22 09:19:22 +00:00