jzmaddock
5329d1d497
Disable constexpr test in C++03.
2025-04-21 13:40:42 +01:00
Adder
4126ca650c
integral_constant: As per std: Add operator().
...
In the C++ Standard Library, `std::integral_constant` has `operator()`:
https://timsong-cpp.github.io/cppwp/meta.help
We hereby add `operator()` for the Boost version.
2025-04-21 12:26:41 +01:00
Andrey Semashev
14560070ca
Make fallback is_complete implementation more robust.
...
When all else fails, at least indicate the types that we always know to
be incomplete: cv void and boundless arrays.
Also cleanup formatting a bit.
2025-04-21 11:45:34 +03:00
Rene Rivera
d2f66abb22
Change all <source> references to <library>.
2024-07-20 21:27:13 -05:00
Rene Rivera
fc1decfa08
Make the library modular usable.
2024-03-11 08:38:17 -05:00
jzmaddock
821c53c0b4
Add support for C++23 <stdfloat> types. ( #183 )
...
* Add support for C++23 <stdfloat> types.
* Update CI scripts.
* Update C++20 testing in has_right_shift_test.cpp.
2023-10-15 16:36:16 +01:00
Andrey Semashev
5f43b22861
Reuse is_swappable implementation in is_nothrow_swappable for gcc < 4.7.
...
This avoids applying noexcept operator to a potentially invalid
swap expression, which should resolve ICE with gcc 4.6.
2023-02-19 16:22:48 +03:00
Andrey Semashev
fc61f298bf
Added is_swappable(_with) traits.
2023-02-19 16:22:41 +03:00
Andrey Semashev
1c31fee575
Extracted C++11 implementation of is_nothrow_swappable to a separate header.
...
Also modified the implementation to avoid referencing any potential swap
overloads in namespace boost, unless these overloads are found by ADL.
Added tests to verify is_nothrow_swappable works with ADL.
2023-02-18 23:53:35 +03:00
Peter Dimov
f753087cd0
Specialize boost::is_integral for char8_t when available. Fixes #175 .
2022-10-30 03:45:54 +03:00
Alexander Grund
d71524a799
Make build -Wundef clean
...
Use `#ifdef __cpp_noexcept_function_type` instead of
`#if __cpp_noexcept_function_type` to avoid `-Wundef` warnings.
Also add that flag to the test flags to detect those on CI.
2022-07-07 10:05:05 +02:00
jzmaddock
a184e146e3
Merge pull request #161 from boostorg/pr/tt-has-accurate-function
...
Fix misspelled macro name
2022-02-10 13:10:02 +00:00
jzmaddock
7ac69733b8
Update CI scripts for testing with CUDA device compile.
...
Fix inspection report issues.
2021-10-03 12:20:08 +01:00
John Maddock
18b6e30e9c
Fix up CUDA device testing [CI SKIP]
2021-10-03 12:09:10 +01:00
John Maddock
09b102587f
Misc CUDA testing fixes
2021-10-02 15:13:42 +01:00
jzmaddock
a842eeda5c
Initial CUDA testing.
2021-10-01 19:10:34 +01:00
Peter Dimov
693488cb29
Fix misspelled macro name
2021-07-04 19:55:29 +03:00
John Maddock
cea791882b
Merge branch 'develop' of https://github.com/bionicOnion/type_traits into pr130
2021-03-08 09:36:28 +00:00
jzmaddock
c3c1357c3d
Fix up C++20 failure.
2021-03-07 12:44:18 +00:00
jzmaddock
71208778dd
One more fix to CI script. Also fix msvc test failures.
2021-03-07 11:42:55 +00:00
jzmaddock
d1994736b9
Fix for recent libc++ versions.
...
Tidy up drone script a little more.
2021-01-27 20:08:11 +00:00
jzmaddock
95c8a8a567
Mark testing binary member operators as const.
...
Otherwise they generate ambiguities in C++20.
2021-01-27 19:33:13 +00:00
jzmaddock
89a062e7b8
Disable testing volatile return types in C++20:
...
as they're deprecated.
2021-01-27 19:32:29 +00:00
Glen Fernandes
c6c7ff1647
Update is_trivially_copyable implementation for user move with defaulted copy
2020-08-14 09:53:04 -04:00
Glen Fernandes
f7f7dbf16e
Implement is_trivially_copyable
2020-05-31 03:00:48 -04:00
Glen Fernandes
7a071a5918
Implement is_scoped_enum and is_unscoped_enum
2020-05-31 02:49:03 -04:00
Glen Fernandes
f8e9879d4e
Implement conjunction, disjunction, negation
2020-05-31 02:47:41 -04:00
Edward Diener
ea2dae279f
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
2020-03-23 09:21:49 -04:00
jzmaddock
741b8b395b
clean up inspection failures and add circle-ci testing.
2019-08-22 19:17:36 +01:00
rmiller
9351dae4a4
Issue 123: Modified preprocessor conditionals to fix errors with /clr builds
2019-07-16 16:08:12 -05:00
Nikita Kniazev
6f7e2ec545
test.hpp: Suppress Clang -Wignored-qualifiers warning
...
../libs/type_traits/test/test.hpp:221:9: warning: 'const' qualifier on reference type 'r_type' (aka 'int &') has no effect [-Wignored-qualifiers]
2019-03-15 00:27:09 +03:00
jzmaddock
625c40e750
Merge pull request #112 from glenfe/develop
...
Implement copy_reference and copy_cv_ref
2019-02-26 20:16:42 +00:00
Glen Fernandes
6a472a381d
Implement copy_reference and copy_cv_ref
2019-02-23 00:05:35 -05:00
Nikita Kniazev
e1f882b25d
is_assignable_test: Fixed copy-paste error
...
The test `is_assignable<noexcept_assignable&>` checks self-assignability, while the
operator was defined for other type, so it was testing the non-noexcept implicit
generated copy assignment operator instead.
2019-02-19 19:11:03 +03:00
jzmaddock
c65f41d4c0
Merge pull request #104 from boostorg/travis-os-x-10.1
...
Travis: Update XCode versions.
2019-01-07 20:33:22 +00:00
jzmaddock
c71e2ffb6e
Merge pull request #95 from glenfe/develop
...
Implement is_bounded_array and is_unbounded_array
2019-01-07 18:34:40 +00:00
jzmaddock
55a3ee0a3d
clang/OSX: Disable untestable is_function/is_member_function bits.
2019-01-07 18:30:22 +00:00
Glen Fernandes
d8bdd309d7
Implement is_bounded_array and is_unbounded_array
2019-01-07 00:30:16 -05:00
jzmaddock
6fca9826f6
Add support for /arch:IA32 in msvc Win32 builds when there is no __vectorcall.
...
Add CI tests for that configuration.
2019-01-05 18:39:49 +00:00
jzmaddock
cacb2bb3f6
Disable __fastcall for x86+CLR.
2019-01-05 09:14:57 +00:00
jzmaddock
3df3014681
Merge branch 'develop' into msvc-calling-convension-tests
...
Resolved Conflicts:
include/boost/type_traits/detail/is_function_cxx_11.hpp
include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp
2019-01-04 19:35:57 +00:00
jzmaddock
ee7e6ff397
Fix /clr test failures.
2019-01-04 18:18:37 +00:00
jzmaddock
16e04ea7c0
No __vectorcal prior to vc12.
2019-01-04 13:23:51 +00:00
jzmaddock
1ead421054
Add better tests for msvc native calling conventions.
2019-01-03 17:52:51 +00:00
jzmaddock
51957092d2
Add CI support for testing /clr option with msvc.
...
Fix CLR failures thanks to : https://github.com/boostorg/type_traits/issues/99 .
2018-12-30 09:58:53 +00:00
Glen Fernandes
fcc0711c33
Update e-mail address in comments
2018-09-08 11:17:06 -04:00
jzmaddock
744b49751a
Merge pull request #89 from glenfe/develop
...
Add enable_if_ and enable_if_t. Sever dependency on Core.
2018-08-27 18:10:48 +01:00
Glen Fernandes
2baafd4a3a
Add enable_if_ and enable_if_t. Sever dependency on Core.
2018-08-25 21:00:17 -04:00
Peter Dimov
91c5184fca
Do not include boost/noncopyable.hpp to avoid a dependency on Core
2018-08-25 01:45:50 +03:00
jzmaddock
7639c5820b
is_function_test.cpp: correct macro usage (again).
2018-08-14 19:40:40 +01:00