Commit Graph

1248 Commits

Author SHA1 Message Date
Daniel James
82438a513b Fix allocator traits macro 2016-10-17 07:54:06 +01:00
Daniel James
b5205e58aa Change log for allocator support. 2016-10-14 09:29:38 +01:00
Daniel James
b907cee691 Use std::allocator_traits where available.
Might have to revert this when implementing C++17 features.
2016-10-14 09:27:40 +01:00
Daniel James
da6e8e8041 Better allocator rebind support 2016-10-14 09:27:40 +01:00
Daniel James
3fd4495b2f Merge branch 'develop' 2016-10-14 09:26:19 +01:00
Daniel James
04607dc9f3 Fix for clang. 2016-10-13 17:03:31 +01:00
Daniel James
ece4116329 Try to fix another warning 2016-10-13 10:00:26 +01:00
Daniel James
74abdd6973 Replace boost::next with a simpler version
Less optimized, but hopefully it won't cause any warnings.
2016-10-11 13:36:41 +01:00
Daniel James
a316d3fa46 Fix more warnings 2016-10-11 10:07:07 +01:00
Rene Rivera
70ce6b4ae7 Add, and update, documentation build targets. 2016-10-10 11:39:54 -05:00
Rene Rivera
ade302f0a0 Add, and update, documentation build targets. 2016-10-07 23:07:37 -05:00
Daniel James
147885fec4 Add another random generation style.
This time for a more limited range of values so that equal values turn
up more often.  This is a bit shoddy, but seems like the best way to
improve the existing tests without too much effort.
2016-10-06 21:52:19 +01:00
Daniel James
65aaf27380 Fix accidental fallthrough in switch cases.
This was causing the hash function to be different to the equality
function. For some reason this resulted in a lot of windows test
failures, but none on linux or os x. I'm a bit confused and worried
about that.
2016-10-06 10:53:10 +01:00
Daniel James
b1588929cc Fix another sign conversion warning. 2016-10-05 13:52:33 +01:00
Daniel James
094fa38360 Remove -Wsign-conversion, old gcc doesn't support it. 2016-10-05 13:52:17 +01:00
Daniel James
71d19820ac Fix signed conversion warnings. 2016-10-05 09:45:53 +01:00
Daniel James
a0dc86ecbc Use the boost snapshot for travis testing. 2016-10-05 09:35:46 +01:00
Daniel James
982685d3a0 Adjust order of variables to see if intel failure changes.
So currently on one intel tester find_tests is failing the 'pos !=
x.end()' test, but not the 'const_pos != x_const.end()' test for
unordered_set (and possibly others, the test results are truncated). I'm
a bit stumped as to why this should be, as for unordered_set the const
and non-const versions are basically the exact same code. See if
changing the order makes any difference to what fails.
2016-10-05 00:57:58 +01:00
Daniel James
dadb4486ee Fix calls to std::rand in tests 2016-10-04 15:52:47 +01:00
Daniel James
d14c1dec59 Revert "Allocator aware constructors."
This reverts commit b00bc15c3e.

I messed that up a bit, will get back to it later.
2016-10-03 20:58:15 +01:00
Daniel James
21d6d7bc21 Fix detection of is_nothrow_move_constructible support.
I should possibly also check how it handles `throw()`?
2016-10-03 10:49:49 +01:00
Daniel James
ff0228e752 Support for std::piecewise_construct. 2016-10-02 17:56:01 +01:00
Daniel James
b00bc15c3e Allocator aware constructors. 2016-10-02 17:56:01 +01:00
Daniel James
50c4cbe06c Try to fix the failures in noxcept_tests 2016-10-02 13:04:25 +01:00
Daniel James
573e10665c Use standard boost move style in noexcept_tests. 2016-10-02 13:04:25 +01:00
Daniel James
d0acb81f2e Release notes for latest changes. 2016-10-02 13:04:25 +01:00
Daniel James
e7b20d2877 Fix exception bug in asssignment.
The hash and key equality functions were assigned before allocating new
buckets. If that allocation failed, then the existing elements would be
left in place - so if accessed after the exception they could be in the
wrong buckets or equivalent elements could be incorrectly grouped
together.
2016-10-02 13:04:25 +01:00
Daniel James
588ad6e69f Travis tests in 32 and 64 bit. 2016-10-01 14:04:01 +01:00
Daniel James
98462fbcc3 Avoid conversion warning. 2016-10-01 13:53:05 +01:00
Daniel James
a93331dd96 Fix new emplace tests. 2016-10-01 13:51:25 +01:00
Daniel James
e174af2286 Try not using boost::forward in emplace_args constructor.
AFAICT it's not needed since the construct arguments and the members are
the same reference type. Maybe it was for older compilers? And it appears
to be causing issues with string literals in older versions of Visual
C++.
2016-09-30 00:32:19 +01:00
Daniel James
9decbe0cbd Manually write out emplace_args for small numbers.
Still need some macros to handle rvalue reference support.
2016-09-30 00:32:19 +01:00
Daniel James
021817f2b4 Fix Visual C++ version number + use BOOST_WORKAROUND. 2016-09-18 22:56:23 +01:00
Daniel James
13ff69efbf Make 'ordered' container independent. 2016-09-18 12:22:48 +01:00
Daniel James
8fda9113b8 Make 'has_unique_keys' container independent. 2016-09-18 12:22:48 +01:00
Daniel James
b881bcfee3 More insert and erase tests 2016-09-18 12:22:48 +01:00
Daniel James
1c606980ec Update tests for standard changes involving bucket count.
It seems my defect report was accepted at some point, and they tweaked
the requirements involving bucket counts. This also makes it possible to
have a bucket count of 0, which I think wasn't allowed in the past. I
don't think I'll change this implementation to do so, but I'd like to be
able to run these tests against standard implementations, so I'm
starting to take that into account.

I believe these changes were made after the C++14 standard, but I've
always been tracking the draft standards, so that doesn't really matter.
2016-09-18 12:22:48 +01:00
Daniel James
0d6e58d9fd Write out some compiler info before test results. 2016-09-18 12:22:48 +01:00
Daniel James
95e477902e Special case for Visual C++ 12 test failure.
Plus some extra tests while I'm at it.
2016-09-18 10:28:21 +01:00
Daniel James
cc32bfb96f Pointless change to extract_key. 2016-09-07 09:26:25 +01:00
Daniel James
7c2f11f8e1 Fix signed/unsigned comparisons. 2016-09-07 09:26:25 +01:00
Daniel James
d08dcb7465 Run xmllint over reference docs in travis. 2016-09-07 09:26:25 +01:00
Daniel James
2d1d6ccd75 Try using boost 1.61.0 in travis 2016-09-04 10:38:13 +01:00
Daniel James
7f380028cc Hint iterator support was too late for 1.62.0 2016-09-04 10:38:13 +01:00
Daniel James
827f77729f Merge branch 'fixes' into develop 2016-09-04 10:37:38 +01:00
Daniel James
6c81de37f5 Fix closing tag. 2016-09-04 10:37:15 +01:00
Daniel James
86a8a0429a Merge branch 'fixes' into develop 2016-09-04 08:23:52 +01:00
Daniel James
4b00548138 Test+document insertion from initializer lists. 2016-09-04 08:23:32 +01:00
Daniel James
8bb9473443 Document assignment from initializer list. 2016-09-04 08:23:31 +01:00
Daniel James
da7a5bf269 Fix insert from range documentation.
Was the same for containers with unique and equivalent keys.
2016-09-04 08:23:31 +01:00