Commit Graph
440 Commits
Author SHA1 Message Date
John Maddock 2162f05dfc Apply patches to correct typos from Michel Morin.
Refs #7683.

[SVN r82241]
2012-12-28 18:21:09 +00:00
Vicente J. Botet Escriba a921c555f1 TypeTraits: make it work with Borland
[SVN r81765]
2012-12-07 17:17:03 +00:00
Marshall Clow c64eb91a2b Remove usage of deprecated macros
[SVN r81466]
2012-11-21 21:11:24 +00:00
Michel Morin a103ebe7ed Update references to the C++11 standard.
[SVN r81113]
2012-10-30 17:01:59 +00:00
John Maddock e6314963a3 Add initial support for __int128 to Config and TypeTraits
[SVN r81064]
2012-10-25 12:21:19 +00:00
Michel Morin a75ba5f2af Fix preprocessor usage (and synchronize the style); fixes #7306
[SVN r80325]
2012-08-31 03:30:51 +00:00
John Maddock b95816426c Move new test cases into the "tricky" section as many compilers can't handle them.
Revert previous change that used std::is_convertible on GCC as it breaks code prior to gcc-4.7.
Fix MSVC intrinsic to handle function types better.
Filter out rvalue-refs from is_function.
Partially apply patch from #7251 to make is_convertible behave more according to C++11.
Refs #7251.

[SVN r80234]
2012-08-26 12:14:11 +00:00
Michel Morin 3bfd10465c Fixing is_convertible for function types; fixes #7246
[SVN r80080]
2012-08-19 02:03:07 +00:00
John Maddock 551385bd9c Remove stray ; in test file.
Add some rvalue ref tests for is_convertible.
Enable use of intrinsics for Intel on Win32.
Fix rvalue ref usage in is_convertible.

[SVN r79983]
2012-08-12 17:57:27 +00:00
John Maddock 9903a5539d Restrict gcc pragma to gcc-4.0 and later.
[SVN r79286]
2012-07-05 15:46:18 +00:00
Michel Morin 960c85dedc Explicitly guard gcc's code path using BOOST_CLANG.
Currently, the version check `(__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)` is enough to guard gcc's code path from clang, since clang pretends to be gcc-4.2.1.
But, it seems that the clang's (pretended) gcc version will be changed to a more recent one in the near future. So we need the explicit guard.

[SVN r78448]
2012-05-13 05:49:12 +00:00
Michel Morin 888910b677 forgot some change in the previous commit
[SVN r78345]
2012-05-06 03:04:35 +00:00
Michel Morin 1cfb87e358 Unconditionally disable clang's __is_pod and __is_empty intrinsics when used with libstdc++ 4.2. This fixes an include order issue reported by Luc Bourhis.
Added `#include <cstddef>` to pull the stdlib's version macro, as done in boost/config/select_stdlib_config.hpp.

[SVN r78344]
2012-05-06 02:50:13 +00:00
John Maddock d4290a588f Apply Clang patch from Michel Morin.
[SVN r77146]
2012-03-01 11:27:18 +00:00
John Maddock 5e1995dcf8 Update to GCC support: support up to 128-byte alignments.
[SVN r76306]
2012-01-04 17:13:24 +00:00
Frédéric Bron e41fd89f7e operator traits: own operator definition moved up to fix clang failures
[SVN r74924]
2011-10-12 05:14:48 +00:00
Frédéric Bron da123a1166 operator traits: uniform handling of warning removal
[SVN r74920]
2011-10-11 20:38:20 +00:00
Frédéric Bron 5d84dee264 operator traits: added #include for operator traits in 'include all header' type_traits.hpp
[SVN r74860]
2011-10-09 18:51:44 +00:00
Frédéric Bron 9e0c22f76a operator traits: deprecated operator++(bool) is now correctly handled (has_{pre,post}_increment<bool>::value==false
[SVN r74841]
2011-10-09 08:24:42 +00:00
John Maddock e76b2462f1 Fix msvc warnings.
[SVN r74795]
2011-10-08 10:52:49 +00:00
Frédéric Bron 6e2fae44d4 added type trait extension to operator detection
[SVN r74782]
2011-10-07 21:05:54 +00:00
John Maddock aabbd5c3c8 Apply final part of Michel Morin's Clang patch.
[SVN r74183]
2011-09-01 17:43:32 +00:00
John Maddock 39cf0ec129 Apply Michel Morin's Clang patch.
[SVN r74178]
2011-08-31 17:10:35 +00:00
John Maddock 5cc1ceccd1 Fix typo in code.
Fixes #5777.

[SVN r73954]
2011-08-20 16:05:02 +00:00
John Maddock 6842d7346b Documentation tweaks.
Fixes #5666.

[SVN r73942]
2011-08-20 09:02:55 +00:00
Antony Polukhin 437c57d614 Fixes #5707. Fixes some trivial bugs for VC++6
[SVN r73201]
2011-07-17 19:36:06 +00:00
Daniel James 8ac524debe Revert support for clang 3.0 intrinsics in type traits.
As dicussed in:

http://lists.boost.org/Archives/boost/2011/06/182844.php


[SVN r72725]
2011-06-23 19:07:45 +00:00
Bryce Adelstein-Lelbach 0bd2b25d5b Clang 3.0+ supports gcc-style type trait intrinsics.
[SVN r72280]
2011-05-30 12:42:20 +00:00
John Maddock 7fdc037def Fix remove pointer so it works for cv-qualified function pointers in VC-10 (compiler bug workaround).
Fixes #5484.

[SVN r71378]
2011-04-19 11:03:17 +00:00
Ion Gaztañaga 0e0c39c08a Fixes for MSVC compilers confused with namespace issues.
[SVN r70662]
2011-03-28 09:03:39 +00:00
John Maddock 28631034ca Fix up type_traits intrinsic support when using the Intel compiler.
Suppress quite a few Intel-12.0 warnings.

[SVN r70221]
2011-03-20 12:18:59 +00:00
John Maddock 087d133793 Update type_traits tests to reflect C++0x.
Make better/simpler use of C++0x intrinsics where available.
Change a few traits to C++0x behaviour.
Update docs to reflect current intrinsic availability.

[SVN r70057]
2011-03-17 13:12:44 +00:00
John Maddock ee29b7660f Change is_convertible to use C++0x behaviour where possible.
Change is_converible to use MSVC __is_convertible intrinsic.
Fixes #5271.
Fixes #4530.

[SVN r69822]
2011-03-10 16:52:00 +00:00
John Maddock 5c40f50432 Fix non-ASCII character.
Fixes #5099.

[SVN r68691]
2011-02-07 16:39:33 +00:00
John Maddock 902217df24 Don't try and redefine macros that are already set.
[SVN r68095]
2011-01-13 12:14:56 +00:00
John Maddock c02516b25b Fix comon_type to actually work when typeof isn't in use.
Applies fixes from Vicente Botet.

[SVN r68040]
2011-01-12 13:29:37 +00:00
John Maddock 19b82cc55b Fix inspection report issues.
[SVN r67728]
2011-01-06 17:09:17 +00:00
Ralf W. Grosse-Kunstleve e0fb41d53c boost/type_traits/common_type.hpp: workaround for gcc 3.2 and 3.3 to avoid spurious warning
[SVN r66835]
2010-11-29 02:26:46 +00:00
John Maddock b722d7208b Fix MSVC warning.
[SVN r66404]
2010-11-05 09:50:42 +00:00
John Maddock eede6ec6e6 Apply submitted patch.
Fixes #4707.

[SVN r65779]
2010-10-06 10:37:48 +00:00
John Maddock 47e6213bd8 Oops fix typo in last commit.
[SVN r65706]
2010-10-01 09:41:05 +00:00
John Maddock b6378f93e9 Tentative patch for IMB's compiler.
[SVN r65705]
2010-10-01 09:37:22 +00:00
John Maddock ff704d8ed0 Suppress use of typeof with the IBM compiler - it appears not to work?
[SVN r65629]
2010-09-27 12:25:37 +00:00
John Maddock 64e9b6ef07 Add missing #include.
[SVN r65626]
2010-09-27 12:15:03 +00:00
John Maddock c77a72a7cc Add conditional trait.
Update and regenerate docs.
Update type_traits.hpp and add trivial test case for it.

[SVN r65575]
2010-09-24 17:12:08 +00:00
John Maddock edd98db5fb Change these two traits to always use a static constant and not BOOST_STATIC_CONSTANT - otherwise they don't work!
Refs #4669.

[SVN r65531]
2010-09-22 08:47:55 +00:00
John Maddock afd6785017 Add declval and common type from Vicente J. Botet Escriba.
Regenerate docs.

[SVN r65443]
2010-09-17 12:12:03 +00:00
John Maddock e66ffd9a99 Add new traits add_lvalue_reference and add_rvalue_reference.
[SVN r65387]
2010-09-11 18:00:56 +00:00
John Maddock c9406a97fe Mangle the names of internal classes so they're less likely to conflict with derived class names and members.
Fixes #4453.

[SVN r64251]
2010-07-22 10:29:49 +00:00
John Maddock b74b5fdf87 Make all references to the detail:: namespace fully qualified so we don't get ambiguities with other libraries.
Refs #4407.

[SVN r63738]
2010-07-08 10:15:11 +00:00