216 Commits

Author SHA1 Message Date
jzmaddock
863ba0a7c5 Revert "Move private-constructor tests into separate file."
This wasn't the right fix, and didn't fix the issue anyway.

This reverts commit fe5f4e2253.
2015-06-16 18:30:02 +01:00
jzmaddock
fe5f4e2253 Move private-constructor tests into separate file.
These tests fail on older GCC versions.
2015-06-16 12:47:29 +01:00
jzmaddock
745bf9bee1 Fix for Oracle+STLPort. 2015-06-14 18:05:58 +01:00
jzmaddock
2f2ca65e48 Switch to using boost::declval.
Change has_nothrow_copy to use is_copy_constructible as it has better broken-compiler workarounds than is_constructible.
2015-06-14 09:30:46 +01:00
jzmaddock
68413905af Update more compiler requirements. 2015-06-12 19:37:19 +01:00
jzmaddock
cb98a630ff Change is_copy_constructible to use is_constructible where possible, and fix some MSVC failures. 2015-06-12 13:26:27 +01:00
jzmaddock
ae76223bab Move trivial/nothrow construct traits closer into line with the standard. 2015-06-11 11:26:33 +01:00
jzmaddock
d44141cf88 Fix behaviour of references and arrays in has_trivial_move_assign. 2015-06-11 10:57:11 +01:00
jzmaddock
11cd9e6674 Improve is_destructible - especially for references. 2015-06-11 10:13:30 +01:00
jzmaddock
434e26e7a3 Improve is_destructible and add tests. 2015-06-11 10:00:31 +01:00
jzmaddock
2d71379074 Fix has_trivial* traits and improve their tests. 2015-06-11 10:00:09 +01:00
jzmaddock
c1d885edbd Test nothrow_copy in no-intrinsics mode. 2015-06-09 18:52:17 +01:00
jzmaddock
4777c0b4a6 Fix has_nothrow_destructor so it actually works.
Add tests for it.
2015-06-09 18:51:46 +01:00
jzmaddock
b21b0f0476 Fix test case: arrays are not explicitly copyable 2015-06-09 18:50:29 +01:00
jzmaddock
4a16185e27 Improve is_constructible.
Add is_destructible.
Add tests.
2015-06-08 19:19:08 +01:00
jzmaddock
8ed541ac23 Merge branch 'develop' of https://github.com/boostorg/type_traits into develop
Resolved Conflicts:
	doc/transform_traits.qbk
	doc/type_traits.qbk
2015-06-08 11:41:56 +01:00
jzmaddock
7a0c636208 Update nothrow_constructible tests. 2015-06-08 09:06:16 +01:00
Peter Dimov
01493e4acb Add a few more common_type tests. 2015-06-08 01:34:06 +03:00
Peter Dimov
b0f9674649 Add a test for copy_cv. 2015-06-08 01:08:18 +03:00
Peter Dimov
bc89aa6160 Add a type_identity test. 2015-06-08 00:54:19 +03:00
jzmaddock
acf6e41edb Add is_assignable.
Update has_nothrow_assign to make use of it.
2015-06-06 12:51:51 +01:00
jzmaddock
34805a673f Improve has_nothrow_constructor with check for constructibility where required. 2015-06-05 18:08:35 +01:00
jzmaddock
19b4c5c9ee Add first draft of is_default_constructible trait. 2015-06-05 18:07:27 +01:00
jzmaddock
916adca633 Add generic version of has_nothrow_assign.
Does not require a compiler intrinsic - makes it easier to port to other/unknown compilers going forward as long as they are C++11.
2015-06-04 18:59:21 +01:00
jzmaddock
e824cad0bd Fix indent. 2015-05-28 18:52:29 +01:00
jzmaddock
d3ac8b95c4 Bring decay into line with std::decay.
See https://svn.boost.org/trac/boost/ticket/7760.
2015-05-28 18:33:31 +01:00
jzmaddock
3b78213a41 Merge branch 'develop' into Version2 2015-05-21 19:37:33 +01:00
jzmaddock
3ee10740eb Merge branch 'Version2' of https://github.com/boostorg/type_traits into Version2 2015-05-21 18:52:13 +01:00
jzmaddock
9f489b0d71 Add tests to detect, https://svn.boost.org/trac/boost/ticket/11324. 2015-05-21 18:39:50 +01:00
AntonBikineev
34fe226814 Added decaying to common_type in accordance with defect LWG2141 2015-05-20 10:29:22 -05:00
jzmaddock
4fb3457fe2 Merge branch 'develop' into Version2 2015-05-17 11:45:08 +01:00
jzmaddock
24b7d226d3 Add fix for false positives in is_virtual_base_of
See https://svn.boost.org/trac/boost/ticket/11309
2015-05-16 18:39:49 +01:00
jzmaddock
703aa0c3b3 Fix clang compilation failure. 2015-03-24 19:01:08 +00:00
jzmaddock
13c3530448 Fix preprocessor logic, and add missing #include. 2015-02-26 19:11:18 +00:00
Alex Henrie
ad30bf473b Correct spelling of "suppress" 2015-01-30 17:52:03 -07:00
jzmaddock
3435d48f0e Add the remaining traits - only common_type still has dependencies to something other than Boost.Config. 2015-01-17 19:08:08 +00:00
jzmaddock
94eb94980e Add more traits back - nearly complete now. 2015-01-17 18:06:27 +00:00
jzmaddock
6aa0878fb3 Add some more traits back. 2015-01-17 13:35:26 +00:00
jzmaddock
fe41f0a4c1 Add operator traits and tests. 2015-01-16 18:30:26 +00:00
jzmaddock
c4c10e06c6 Add new versions of decay, extent, function_traits. 2015-01-15 18:23:35 +00:00
jzmaddock
6bbee3cc59 Add new versions of alignment traits. 2015-01-15 17:05:05 +00:00
jzmaddock
8dc33362b9 Convert some more traits. 2015-01-15 11:31:18 +00:00
jzmaddock
f0da159e1f Initial commit of new version of type_traits which has zero dependencies (other than Boost.Config), plus reduced template instantiations, and cleaner easier to read code. 2015-01-14 18:34:11 +00:00
jzmaddock
ffa9927732 Add new hooks for nothrow move assign/construct and fix is_nothrow_move_assignable and is_nothrow_move_constructible for msvc-12 and later. 2014-12-05 18:30:54 +00:00
jzmaddock
5c0474dbc7 Improve is_nothrow* tests.
Disable is_nothrow* full implementation when there's no SFINAE expressions and simplify implementation.
2014-10-19 17:45:57 +01:00
jzmaddock
6b92cc7e26 Fix C++11 syntax error 2014-09-22 18:09:12 +01:00
Ion Gaztañaga
cf18d2bbac is_copy_assignable implementation added. It needs C++11 support to work reliable. 2014-08-26 23:23:12 +02:00
jzmaddock
df74811a4c Fix has_trivial_copy so that non-copyable types are never trivially copyable! Also fix clang to detect trivially copyable array types. 2014-08-23 12:20:26 +01:00
jzmaddock
0e78687e7d Fix test case:
* Don't test incomplete types.
* Use new BOOST_NO_CXX11_FINAL macro for checks.
* Use soft checks when no compiler support is present.
2014-08-20 18:15:30 +01:00
K-ballo
5d936acc05 Added is_final type trait. Added BOOST_IS_FINAL intrinsic. 2014-08-19 14:45:00 -03:00