61 Commits

Author SHA1 Message Date
Andrey Semashev
5d0ec18a0c Switch to boost::core::invoke_swap.
boost::swap is deprecated and will be removed. Use boost::core::invoke_swap
as a replacement.
2023-09-02 20:58:41 +03:00
Michael Ford
dc9592de76 refactor: use core/swap.hpp over utility/swap.hpp
The later is deprecated.
2022-12-04 15:24:10 +00:00
Ion Gaztañaga
7c01e916a3 More fixes for -Wsign-conversion 2021-10-11 13:26:45 +02:00
Ion Gaztañaga
819b3dd67b Small fix for those using -Wsign-conversion 2021-10-11 13:18:23 +02:00
Edward Diener
87ff02bf79 Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. 2020-03-30 13:31:11 -04:00
Romain Geissler
1e0276741b Fix -Wdeprecated-copy warning with gcc 9. 2019-04-17 21:13:33 +00:00
Peter Dimov
16731d2689 Make boost::tuple tuple-like to support structured bindings 2018-01-03 19:26:11 +02:00
Joel de Guzman
158c7ef640 Fixes Ticket #12064 2016-03-13 08:04:40 +08:00
Dmitry Marakasov
8b6613e592 Only check for BOOST_GCC when it's defined
This fixes warnings with clang:

/usr/local/include/boost/tuple/detail/tuple_basic.hpp:44:5: warning: 'BOOST_GCC' is not defined, evaluates to 0 [-Wundef]
2016-03-01 13:54:12 +03:00
Marcel Raad
8bdf2a9c58 Make tuple constructor explicit
Otherwise everything implicitly convertible to the data type of the first element is implicitly convertible to a boost::tuple, which has led to long-unnoticed bugs in production code. This change is also consistent with the TR1 and C++11 tuple.
2014-06-03 14:32:44 +02:00
Joel de Guzman
c17f1ec5b2 Merge pull request #1 from timblechmann/topic/silence_warning
tuple: silence gcc warning
2014-04-17 08:53:51 +08:00
Andrey Semashev
f9b3dcb203 Remove unused local typedef
Remove unused function-local typedef to avoid warnings with GCC 4.8.
2014-03-08 10:58:09 +03:00
Tim Blechmann
f4a6eafdb3 tuple: silence gcc warning 2013-12-07 14:40:49 +01:00
Stephen Kelly
27d746b9e3 Remove obsolete files.
[SVN r86242]
2013-10-11 23:11:35 +00:00
Stephen Kelly
40e5cd5e6c Tuple: Remove obsolete MSVC version check.
[SVN r86038]
2013-09-30 00:21:22 +00:00
Stephen Kelly
2798fa2168 Remove use of obsolete BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE macro.
[SVN r85897]
2013-09-25 10:29:59 +00:00
Stephen Kelly
136ffd5057 Remove use of obsolete BOOST_EXPLICIT_TEMPLATE_NON_TYPE macro.
[SVN r85895]
2013-09-25 10:29:10 +00:00
Steven Watanabe
9d64187c34 Add an element-wise swap for Boost.Tuple. Fixes #1324
[SVN r62686]
2010-06-09 19:30:35 +00:00
Steven Watanabe
7b6203747a Use an inline function instead of a static object for boost::tuples::ignore, avoiding problems with the ODR and Borland precompiled headers. Fixes #2656
[SVN r62684]
2010-06-09 19:00:56 +00:00
Steven Watanabe
1b07c1a2d4 Reimplement boost::tuples::element and boost::tuples::get to make better use of memoization. Fixes #2130
[SVN r62683]
2010-06-09 18:28:16 +00:00
Joel de Guzman
451415ebce fixed tuples::length not having a specialization for const tuple<> and const null_type
[SVN r51862]
2009-03-20 01:21:42 +00:00
Beman Dawes
a30a7f9604 With his kind permission, change Jaakko "Järvi" to "Jarvi"
[SVN r46808]
2008-06-28 13:45:21 +00:00
Ralf W. Grosse-Kunstleve
76c2151830 avoid g++ -Wall -W "unused parameter" warnings
[SVN r32373]
2006-01-22 19:29:32 +00:00
John Maddock
9c6ef41dfe Large patch from Ulrich Eckhardt to fix support for EVC++ 4.
[SVN r30670]
2005-08-25 16:27:28 +00:00
Joaquín M. López Muñoz
34690282fe fixes in element<> for BCB compilers, with help from Tobias Schwinger
[SVN r25763]
2004-10-18 06:03:18 +00:00
Douglas Gregor
eea1937afc Converted to Boost Software License, Version 1.0
[SVN r24096]
2004-07-27 03:43:34 +00:00
Douglas Gregor
8820994ffd Doug Gregor -> Douglas Gregor
[SVN r24016]
2004-07-25 02:29:29 +00:00
Toon Knapen
045d761ab5 suppressed scoping the call get_class to the detail namespace
[SVN r23113]
2004-06-17 13:51:33 +00:00
Toon Knapen
63c93b59b4 port to vacpp:
added default template arguments explicitly (Joaquin M Lopez)
  removed member template keyword (Toon Knapen)


[SVN r23109]
2004-06-17 07:01:13 +00:00
Dave Abrahams
78572fca7b Bug fix for vc6
[SVN r20866]
2003-11-19 22:01:52 +00:00
Joel de Guzman
ad29f96e5b updated swallow_assign constness bug
[SVN r20520]
2003-10-28 09:42:43 +00:00
Joel de Guzman
9734556efe made "ingnore" a const object to avoid linker errors
[SVN r20449]
2003-10-21 23:25:17 +00:00
Dave Abrahams
e4b869219b More complete functionality for compilers without partial specialization.
[SVN r19925]
2003-09-05 16:52:55 +00:00
Jaakko Järvi
41d649b08c cleaning up after previous commit
[SVN r19688]
2003-08-18 19:35:29 +00:00
Jaakko Järvi
122bf636f5 getting rid of some library specific macros and using BOOST_NO_EXPLICIT_-
FUNCTION_TEMPLATE_ARGUMENTS related helper macros from the config library


[SVN r19687]
2003-08-18 19:33:47 +00:00
Jaakko Järvi
1972959fda element<T>::type takes constness into consideration
[SVN r17666]
2003-02-26 23:10:55 +00:00
Dave Abrahams
8992af95d1 Link bug workaround for MSVC and old Dec CXX
[SVN r16342]
2002-11-20 13:17:52 +00:00
Jaakko Järvi
2c213c8295 fix one borland warning
[SVN r15808]
2002-10-08 18:43:52 +00:00
Jaakko Järvi
22f56bbe58 fixed Bemans name in a comment
[SVN r15594]
2002-10-01 03:26:10 +00:00
Dave Abrahams
cc5a2ae388 Fixes which make it possible to declare with reference elements
[SVN r15532]
2002-09-28 07:25:27 +00:00
Jaakko Järvi
4cd544f4c1 applied patch Markus Schöpflin, ::template replaced with ::BOOST_NESTED_TEMPLATE
[SVN r15466]
2002-09-20 15:55:10 +00:00
Douglas Gregor
788896864a Fixed a dumb typo (thanks Marsh)
[SVN r14232]
2002-06-24 14:20:29 +00:00
Jaakko Järvi
08be3cbe04 removing tabs
[SVN r13783]
2002-05-09 17:26:37 +00:00
Jaakko Järvi
001f5b4c14 Previous changes broke tuples for Borland, this should fix it
[SVN r13611]
2002-05-01 20:53:44 +00:00
Jaakko Järvi
75d7917f66 - tuple types can now have void and plain function types as
elements
- tuple objects can hold non-copyable objects (such as arrays)


[SVN r13525]
2002-04-19 19:32:19 +00:00
John Maddock
6d2cb1d793 Fixed VC7 compile problems (thanks to Sofus Mortensen).
[SVN r13482]
2002-04-14 11:45:32 +00:00
Dave Abrahams
5f196d037f added missing "inherited" typedef
[SVN r12332]
2002-01-17 07:47:25 +00:00
Jaakko Järvi
8408cc0bd5 thomas witt:s patch for icl501, adds a workaround for explicitly
qualified arguments
Also fixed length, so that it now works for empty tuples as well


[SVN r11722]
2001-11-16 23:27:08 +00:00
John Maddock
a9b6ca508a Borland C++ fixes: typedef dependent types before using them.
[SVN r11198]
2001-09-22 11:51:14 +00:00
Jaakko Järvi
063758ef7f added full namespace qualifiers in get<N> calls to avoid errors
in edg-strict mode


[SVN r11133]
2001-09-17 10:32:32 +00:00