jzmaddock
547263c001
Merge branch 'develop' of https://github.com/boostorg/type_traits into develop
2018-05-04 20:04:14 +01:00
jzmaddock
7e9909324a
Fix missing #pragma warning(pop)'s for msvc
...
Fixes https://github.com/boostorg/type_traits/issues/68
2018-05-04 20:03:59 +01:00
jzmaddock
307f37ab58
Merge pull request #65 from danieljames/include-yes-no-type
...
Include yes_no_type.hpp from is_complete.hpp
2018-03-31 11:38:12 +01:00
jzmaddock
4c3706113a
Fix for type-punning warnings from gcc.
...
See: https://svn.boost.org/trac10/ticket/13479
2018-03-29 11:31:35 +01:00
Daniel James
2bb1021fe8
Include yes_no_type.hpp from is_complete.hpp
2018-03-14 13:49:25 +00:00
jzmaddock
7e19a87e67
Update tests for GCC-4.6.x failures.
...
Also suppress one new msvc warning (from 14.1 update 6).
2018-03-13 18:03:18 +00:00
John Maddock
b06185c29f
is_nothrow_move_constructible: Tentatively re-enable support for gcc-4.7.x as it seems to work locally
2018-03-07 19:04:26 +00:00
jzmaddock
e5003ad808
is_likely_lambda.hpp: Allow use of the workaround for msvc-14.0.
...
Note that 14.0 update 3 doesn't require this, but update 2 and earlier do.
2018-02-21 18:30:50 +00:00
jzmaddock
10f09a6327
is_complete: implementation chokes with gcc-4.5, disable for that compiler.
...
[CI SKIP]
2018-02-16 19:32:41 +00:00
jzmaddock
75160cd755
clang: we can't use the new operator detector code for clang < 3.2.
2018-02-16 19:08:49 +00:00
jzmaddock
8d938a4bb9
binary operator traits: previous fix using is_complete can't be used since even incomplete types may have non-member operators declared.
2018-02-14 18:09:52 +00:00
jzmaddock
875b95974a
binary operators: msvc-12 and under can't cope with new gcc workarounds, so disable in that case.
2018-02-13 19:55:06 +00:00
John Maddock
84f9b6da68
binary operators: add revised workaounds for gcc-4.7 and 4.8
2018-02-13 19:18:12 +00:00
John Maddock
28658d6c11
Comparison operators: add poor man's workaround for captureless lambdas
2018-02-12 18:30:08 +00:00
jzmaddock
014ac72782
Switch to a centralised macro for binary operator traits implementation selection.
2018-02-10 17:40:39 +00:00
jzmaddock
7d42b545e9
Merge pull request #62 from glenfe/develop
...
For MSVC2017 use detector_t instead of make_void
2018-02-10 11:59:38 +00:00
John Maddock
fb4430512d
Fix up -= and += detection for clang.
2018-02-09 18:20:23 +00:00
John Maddock
94e54c030d
binary operators: disable new code for older gcc versions
2018-02-08 19:21:13 +00:00
jzmaddock
e4d3cba6dd
Binary Operators: switch to the "detection idiom" if the compiler supports it.
...
This gives us almost perfect fidelity in the detection and solves the known issues for binary operators.
Also fixes: https://svn.boost.org/trac10/ticket/13012 .
2018-02-07 19:14:50 +00:00
jzmaddock
fdf9b67335
is_complete: correct namespace names.
2018-02-07 18:03:08 +00:00
jzmaddock
ed21a2d9c7
is_complete: no std::declval in gcc-4.4 and earlier.
...
So disable in that case.
2018-02-07 18:00:06 +00:00
Glen Fernandes
b406b574a5
For MSVC2017 use detector_t, instead of make_void.
...
(Not using boost::void_t to workaround a VC12 defect)
2018-02-06 22:16:52 -05:00
jzmaddock
6d294b5ff2
is_complete: qualify the detail namespace as otherwise it can trip up msvc-14.0.
2018-02-05 12:05:15 +00:00
jzmaddock
0886e13a99
Assert completeness fixes: fix up msvc failures.
2018-02-04 18:15:34 +00:00
jzmaddock
bfb6384a0a
Assert on incomplete types: begin fixing test failures for msvc-12.0, 14.0, and clang.
2018-02-04 12:52:24 +00:00
jzmaddock
ac351390b2
Assert when we try to use an incomplete type on a trait which requires complete types as arguments.
...
This prevents some traits from doing the wrong thing (ie compiling but giving the wrong answer when handed an incomplete type.
See https://svn.boost.org/trac10/ticket/12285 .
A by-product of this is we add is_complete as a new trait.
2018-02-04 10:03:30 +00:00
jzmaddock
85a03d3453
Fix integral_constant.hpp for the case where the user has explicitly defined BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE.
...
Fixes: https://svn.boost.org/trac10/ticket/12212
2018-02-03 16:18:12 +00:00
jzmaddock
33bd73e26d
Add macro to indicate when is_constructible is fully implemented.
...
Fixes: https://svn.boost.org/trac10/ticket/12003
[SKIP CI]
2018-02-02 19:24:52 +00:00
jzmaddock
30b029d937
Fix typos in is_mem_fun_pointer_tester.hpp.
...
See https://svn.boost.org/trac10/ticket/11884
[SKIP CI]
2018-02-02 19:18:18 +00:00
jzmaddock
f5823d6732
type_traits:function type testing, change to explicit noexcept specifiers as clang-4 can't handle partial-specialisation on noexcept(bool).
...
Also reinstate and test support for functions with ellipsis.
2018-02-02 18:17:03 +00:00
jzmaddock
c8c95f18ca
type_traits: function types, update to detect functions with exception specifications in is_function and is_member_function_pointer.
2018-02-01 19:14:30 +00:00
Glen Fernandes
35c105501b
Implement detection idiom toolkit
2018-01-28 09:40:24 -05:00
jzmaddock
5d5c651ea6
Type_traits.is_default_constructible: workaround for std::pair is required for more compilers. We don't need functional appveyor.yml any more.
2018-01-28 10:44:12 +00:00
John Maddock
7beb519980
GCC-5.x also needs workaround for std::pair issue
2018-01-27 18:31:28 +00:00
John Maddock
a6e879f091
Add tests and tentative fix for issue with clang mis-identifying pairs of non-constructible types. See github #51 .
2018-01-25 13:18:38 +00:00
Daniel James
3e9608230c
Fallback for is_nothrow_swappable on pre-C++11
2017-11-28 22:12:01 +00:00
jzmaddock
4ac0c52b66
Merge pull request #50 from Lastique/fix_clang30_decltype
...
Add a workaround for clang 3.0 not supporting decltype in base class list
2017-10-26 18:34:02 +01:00
jzmaddock
9ee7745626
Merge pull request #47 from kuhlenough/develop
...
VxWorks has double align issues similar to unix
2017-10-26 18:32:02 +01:00
jzmaddock
51c82dc0fe
Merge pull request #46 from tanzislam/fix_detail_namespace_for_borland
...
Fix 'detail' namespace opening for Borland
2017-10-26 18:28:24 +01:00
Andrey Semashev
455e6129be
Added a workaround for clang 3.0 not supporting decltype in base class list.
...
Use an additional proxy class to define the base class using decltype in a
typedef, which is supported by the compiler, judging by Boost.Config tests.
2017-09-19 14:51:45 +03:00
Tanzinul Islam
7bc78f51ff
Move the detail namespace entirely within the #ifndef __BORLANDC__-block.
2017-09-08 21:37:03 +01:00
jzmaddock
b23f18cac2
is_complex.hpp: include boost/config.hpp first so we get compiler specific workarounds prior to including std lib headers.
2017-09-07 18:09:53 +01:00
Brian Kuhl
d6f2dd9186
Whoops, updating intrinsics.hpp again
2017-09-06 10:33:34 -04:00
Brian Kuhl
dfaad9ed21
Update intrinsics.hpp
2017-09-05 23:54:19 -04:00
Brian Kuhl
54f3c61f08
VxWorks has double align issues similar to unix
...
but only on 32bit IA
2017-09-05 23:46:58 -04:00
Tanzinul Islam
907bbbb759
Fix 'detail' namespace closing for Borland
...
In `type_with_alignment.hpp`, the `boost::detail` namespace is opened in line 28 just before starting the main `#ifndef __BORLANDC__`-block at line 30. The `detail` namespace is closed within the `#ifndef`-block at line 79. Highlight that namespace closing-brace with a comment for visibility.
Furthermore, the main `#ifndef __BORLANDC__`-block has a `#else`-case beginning at line 209, which effectively begins the `boost::detail` namespace at that point. This continuation of the namespace was missing a closing brace, causing a compilation failure with C++Builder (due to not finding `::boost::tt_align_ns::a16` in line 230, but merely finding `::boost::detail::tt_align_ns::a16`). Add that closing brace in line 217 with a visibility comment, just before opening the `tt_align_ns` namespace (which is expected by existing code to be directly inside the `boost` namespace, and not inside `boost::detail`).
2017-08-27 15:15:31 +01:00
jzmaddock
336162c8c4
Merge pull request #42 from boostorg/feature/is_list_constructible
...
Add is_list_constructible
2017-07-16 19:04:56 +01:00
Peter Dimov
ced4870cb0
Add is_list_constructible
2017-07-15 23:03:38 +03:00
Peter Dimov
aa8dcb47cf
Add is_nothrow_swappable
2017-07-15 18:57:34 +03:00
Peter Dimov
8f62efcdfc
Fix MSVC failures caused by warning C4800
2017-07-06 00:05:17 +03:00