Commit Graph
309 Commits
Author SHA1 Message Date
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
jzmaddock e4f356dab3 Use correct macro in is_function_test.cpp. 2018-08-14 17:54:14 +01:00
jzmaddock e0868d6474 GCC warning fix has to be constrained to gcc-7. 2018-08-13 09:29:46 +01:00
jzmaddock 4b6b13ad25 Disable gcc warning. 2018-08-12 19:37:33 +01:00
jzmaddock c3412181c4 Refactor is_function.hpp/is_member_function_pointer.hpp:
With separate files for C++03 and C++11 versions.
Add workarounds for compilers with insufficient C++11 support to handle the new code.
Add support for C++17 noexcept function signatures and update tests accordingly.
2018-08-12 11:04:33 +01:00
jzmaddock 52fbd03a6c Big update for is_function and is_member_function_pointer for modern compilers with modern features.
See https://github.com/boostorg/type_traits/issues/81.
2018-08-11 19:32:02 +01:00
jzmaddock baad6ce607 Merge pull request #84 from boostorg/issue80
Add tests for scoped_enums.
2018-08-11 09:26:47 +01:00
jzmaddock 635388aafd Issue80: remove redundant test. 2018-08-11 08:30:08 +01:00
jzmaddock 66a146c1cb Disable additional specialization for is_function for msvc-10.0 -
it doesn't work and leads to ambiguous overloads.
Also change the expected result of some tests for msvc-14.0.
2018-08-10 18:13:02 +01:00
jzmaddock a408a29ffc Update has_complement tests. 2018-08-10 12:52:21 +01:00
jzmaddock 5bd3e11429 Make the unary operator traits use "perfect" detection.
Update tests accordingly.
2018-08-09 19:48:36 +01:00
jzmaddock 56d111026c tricky_rvalue_test.cpp: correct msvc version workaround. 2018-08-07 18:23:38 +01:00
jzmaddock 8d740945a8 is_rvalue_reference: More partial specialisations for obsolete compilers. 2018-08-07 17:59:11 +01:00
jzmaddock e574d2c134 Add tests for scoped_enums.
See https://github.com/boostorg/type_traits/issues/80 and https://svn.boost.org/trac10/ticket/9913.
2018-08-06 19:11:20 +01:00
jzmaddock 0c59e22982 Tentative fix for msvc-10 issue with rvalue refs.
See: https://svn.boost.org/trac10/ticket/5795 and https://github.com/boostorg/type_traits/issues/78.
2018-08-06 18:31:26 +01:00
jzmaddock 7b115c8d0e Tests: disable some failing tests for msvc-11.0. 2018-05-19 19:45:10 +01:00
jzmaddock 4c9add90d0 Intrinsics: update msvc trivial move intrinsics.
Tighten up the tests.
2018-05-19 09:29:13 +01:00
jzmaddock 6eb8a15c25 Merge pull request #71 from boostorg/pr31
CI integration test for PR31.
2018-05-12 08:18:49 +01:00
John Maddock fbc50bfd12 is_virtual_base_of: more workarounds for clang and older gcc versions 2018-05-10 11:34:02 +01:00
jzmaddock 02270ed668 is_virtual_base_of: tentative fixes for clang and older gcc versions.
[CI SKIP]
2018-05-10 10:31:24 +01:00
jzmaddock 770c095dcc is_virtual_base_of_test.cpp: add more tests for tricky cases and bug reports. 2018-05-09 19:31:45 +01:00
jzmaddock b48fae5352 is_final_test.cpp: disable some tests for msvc-12 for which there is no workaround.
The compiler is unable to detect final class templates.
2018-05-09 18:13:58 +01:00
jzmaddock 01f9a0b43a Add test for const-qualified final classes. 2018-05-08 18:53:17 +01:00
jzmaddock 963131c1db is_final_test.cpp: Fix for compilers with no final keyword. 2018-05-08 07:58:34 +01:00
jzmaddock 356635219b Fix for is_final which works around GCC bug, see https://github.com/boostorg/type_traits/issues/69 2018-05-07 18:50:28 +01:00
jzmaddock d06ee12c5c has_nothrow_copy: new test case fails for msvc-12 and there seems to be no way to make it work. 2018-05-07 18:18:44 +01:00
John Maddock 9052a3830e has_nothrow_copy: disable intrinsic for gcc-4.8 as well as 4.7, and the test for gcc-4.4 2018-05-07 13:36:20 +01:00
John Maddock 59e81bca80 Tentative fix for git issue #56: failing has_nothrow_copy with deleted constructor 2018-05-07 09:47:06 +01:00
jzmaddock e34ad30482 Fix some more gcc-4.5/6 testing errors. 2018-03-13 18:32:15 +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
jzmaddock 5240cd67d8 Comparison tests: disable tests that gcc-4.6 and earlier cannot handle. 2018-02-16 19:38:41 +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
John Maddock 94e54c030d binary operators: disable new code for older gcc versions 2018-02-08 19:21:13 +00:00
jzmaddock 98d6eaf1e9 Add missing function bodies to test cases - it suppresses gcc warnings. 2018-02-08 09:02:05 +00:00
jzmaddock e9399adefa Add tests for improved binary operators. 2018-02-07 19:50:26 +00:00
jzmaddock 0886e13a99 Assert completeness fixes: fix up msvc failures. 2018-02-04 18:15:34 +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 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
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 bb94535ba8 Type_traits: add CI defines to Jamfile. Update travis script to build multiple configurations at once for faster build times. 2017-10-25 19:10:02 +01:00