Commit Graph

44 Commits

Author SHA1 Message Date
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
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
Antony Polukhin
c35a7ea2ce Any now can work without RTTI and uses Boost.TypeIndex 2014-08-11 14:07:54 +04:00
Antony Polukhin
c92ab03ab3 Apply fix for [#8958](https://svn.boost.org/trac/boost/ticket/8958) 2014-08-11 13:45:45 +04:00
Antony Polukhin
e3e5da65ba Removed a few whitespaces 2013-12-09 11:37:27 +04:00
Antony Polukhin
edc51a94e3 Fix issue #9462 with returning rvalue reference instead of returning by copy 2013-12-09 11:37:27 +04:00
Stephen Kelly
a4c98bb933 Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
Process #ifdef...#endif blocks.

[SVN r86243]
2013-10-11 23:13:10 +00:00
Antony Polukhin
619c405be4 Fix for construction of any from const any&& (refs #9215)
[SVN r86213]
2013-10-09 14:34:15 +00:00
Stephen Kelly
0c0636053c Any: Remove obsolete GCC version check.
[SVN r86104]
2013-10-01 08:42:06 +00:00
Stephen Kelly
936ef398d8 Remove obsolete MSVC check from pragma guard
git grep -h -B1 "^#\s*pragma once" | grep -v pragma | sort | uniq

is now clean.

[SVN r85952]
2013-09-26 13:02:51 +00:00
Antony Polukhin
a9f77d5591 Trivial fix of visibility issue (refs #8751)
[SVN r84940]
2013-07-02 13:08:42 +00:00
Antony Polukhin
4fcf4ec446 Bugfix for any
[SVN r84236]
2013-05-11 19:40:16 +00:00
Antony Polukhin
f08ab8105a Make Boost.Any more conformant to draft:
* tune boost::any_cast to work with temporaries and add some more test (partially refs #6999)

[SVN r84229]
2013-05-10 19:23:34 +00:00
Antony Polukhin
8b2652d4b1 Make Boost.Any more conformant to draft:
* add missing BOOST_NOEXCEPT (partially refs #6999)
* add clear() method
* microoptimization

[SVN r84182]
2013-05-07 19:19:42 +00:00
Antony Polukhin
90b5d25d6a Make Boost.Any more conformant to draft:
* decay ValueType (partially refs #6999)
* experimental any_cast<rvalue&&>

[SVN r84140]
2013-05-04 19:01:27 +00:00
Antony Polukhin
127fd619d8 Added missing BOOST_NOEXCEPT to destructor and updated documentation of Boost.Any (refs #6999)
[SVN r83976]
2013-04-20 06:54:54 +00:00
Antony Polukhin
008ba23d15 Do not use Boost.Move for rvalues emulation in Boost.Any (now rvalues in Boost.Any work only on C++11 compilers) (refs #6999)
[SVN r83917]
2013-04-15 20:17:30 +00:00
Antony Polukhin
d748e7ae4f Added rvalue references support via Boost.Move to Boost.Any (refs #6999)
[SVN r83901]
2013-04-14 18:16:26 +00:00
Steven Watanabe
034437cd91 Add free swap. Fixes #7578.
[SVN r82887]
2013-02-14 18:43:23 +00:00
Alexander Nasonov
c6b7d93104 Fix #754 (boost::any - typeid comparison across shared boundaries).
[SVN r56168]
2009-09-13 13:16:28 +00:00
Alexander Nasonov
96443e1f00 Fixes #2311: any::operator= should have by-value argument
[SVN r50120]
2008-12-04 22:22:39 +00:00
Alexander Nasonov
ed171b8cd4 Fixes #1704 [any] 4512 warning from VC8/9 on warning level 4
[SVN r45178]
2008-05-06 20:44:09 +00:00
Alexander Nasonov
f470327561 Bug reported by Aristid Breitkreuz is fixed: Boost.Signals does not work properly across shared library boundaries if some compiler options (-fvisibility=hidden on GCC) are set.
[SVN r35156]
2006-09-18 05:32:54 +00:00
Alexander Nasonov
9549328133 Two any_cast are inlined to reduce code size
[SVN r33572]
2006-04-06 21:51:12 +00:00
Douglas Gregor
a836c0cdb4 Merged from Version_1_33_1
[SVN r31949]
2005-12-08 03:23:02 +00:00
Vladimir Prus
7a5eeffb81 Allow 'any_cast' to a reference type.
The original patch from Mikhail Glushenkov.
Tests from Alexander Nasonov.

See:
   http://lists.boost.org/MailArchives/boost/msg76737.php
   http://lists.boost.org/MailArchives/boost/msg79043.php


[SVN r27416]
2005-02-18 08:29:38 +00:00
John Maddock
15690b572f BSL update
[SVN r25146]
2004-09-16 11:23:30 +00:00
Björn Karlsson
24184f28fe Changed the throw_exception.hpp include to <> rather than "" for consistency with other libraries
[SVN r20282]
2003-10-07 13:23:45 +00:00
Björn Karlsson
8900c213b1 Added support for boost::throw_exception; patch from LarsBj.
[SVN r20277]
2003-10-07 12:01:38 +00:00
Beman Dawes
416e24eed4 Add /libs/lib-name to comment
[SVN r16685]
2002-12-23 02:43:12 +00:00
Beman Dawes
3f5bf4a199 Update license
[SVN r12379]
2002-01-20 20:09:43 +00:00
Beman Dawes
3fab8eb978 Member template workarounds (Darin Adler)
[SVN r10545]
2001-07-05 21:08:05 +00:00
uid30850
00f4eb77d3 revert previous "fix"
[SVN r10528]
2001-07-04 21:51:13 +00:00
uid30850
a1eb2a8e73 add empty throw spec to any destructor (inherits from std::exception)
[SVN r10527]
2001-07-04 21:50:06 +00:00
Beman Dawes
828a73f676 Initial commit
[SVN r10517]
2001-07-03 17:13:38 +00:00