Commit Graph

8536 Commits

Author SHA1 Message Date
Barend Gehrels
0c996ee004 Merge branch 'develop' into feature/buffer 2015-03-30 20:43:26 +02:00
Barend Gehrels
bd9455207b Merge branch 'bg-prepare' 2015-03-30 18:25:04 +02:00
Barend Gehrels
714d01a1ea Merge branch 'develop' into bg-prepare 2015-03-30 18:24:44 +02:00
Adam Wulkiewicz
cfbe7ee72a Merge pull request #276 from mkaravel/fix/no_int128_for_promote_integral
Disable use of int128
2015-03-30 17:03:29 +02:00
Menelaos Karavelas
ba9117b37e [test][util][promote integral] guard use of int128 and uint128 by the macro 2015-03-30 17:44:05 +03:00
Menelaos Karavelas
494045809e [util][promote integral] guard use of int128 and uint128 by the macro
BOOST_GEOMETRY_ENABLE_INT128
2015-03-30 17:43:08 +03:00
Barend Gehrels
447f729589 Merge branch 'bg-prepare' 2015-03-29 21:03:27 +02:00
Barend Gehrels
7f83ea6f49 Merge branch 'develop' into bg-prepare 2015-03-29 21:02:58 +02:00
Barend Gehrels
e56561481e [test] Added define to avoid default usage of multiprecision 2015-03-29 00:38:18 +01:00
Adam Wulkiewicz
0fff6f8c75 Merge branch 'develop' of github.com:boostorg/geometry into develop 2015-03-28 15:07:24 +01:00
Adam Wulkiewicz
c0f4b05806 [test][intersection] Disable the test for ticket 10868. 2015-03-28 15:07:02 +01:00
Barend Gehrels
32ccdc79eb [minor] add const 2015-03-28 14:50:58 +01:00
Barend Gehrels
4be353a5e4 [minor] fix typo 2015-03-28 14:50:32 +01:00
Adam Wulkiewicz
551507ac47 [test][util] Prevent min/max macro substitution for numeric_limits min/max. 2015-03-28 02:47:20 +01:00
Adam Wulkiewicz
d6ca52c90e [util] Avoid conversion of negative number to unsigned (MSVC warning). 2015-03-28 02:46:21 +01:00
Adam Wulkiewicz
7c30a45e12 Merge pull request #275 from mkaravel/fix/ticket_10835
A few updates for promote_integral
2015-03-28 02:22:55 +01:00
Menelaos Karavelas
1b92041500 [test][util][promote integral] (re-)implement bit_size locally in the unit test 2015-03-28 03:18:59 +02:00
Menelaos Karavelas
7b515316e7 [util][promote integral] re-implement detail::promote_integral::bit_size<>
in a more type safe way; split the implementation of promote_integral<>
for (fundamental) integral and other types (non-integral or user-defined)
so that for those types the compilation is simpler/faster;
2015-03-28 03:16:35 +02:00
Menelaos Karavelas
3df65c1bd4 [test][util][promote integral] measure all sizes in bits rather than a mixture
of bits and bytes; add a few more tests regarding max and min values;
2015-03-28 01:32:24 +02:00
Menelaos Karavelas
e169f80ad3 [util][promote integral] update inline documentation; polish code;
measure all sizes in bits rather than a mixture of bits and bytes;
2015-03-28 01:30:07 +02:00
Adam Wulkiewicz
ac73cb3926 Merge pull request #274 from mkaravel/fix/ticket_10835
Fix for Boost Trac tickets #10658, #10835 and #11121
2015-03-27 22:56:20 +01:00
Menelaos Karavelas
27e7ad6aa6 [test][util][promote integral] update unit test to account for unsigned long long and uint128 2015-03-27 22:46:34 +02:00
Menelaos Karavelas
af1a3da823 [util][promote integral] add support for unsigned long long and uint128 2015-03-27 22:45:49 +02:00
Menelaos Karavelas
88009aa38b [util][promote integral] replace boost::integral_constant<std::size_t, Value>
by boost::mpl::size_t<Value> when possible (2 instances)
2015-03-27 14:18:23 +02:00
Menelaos Karavelas
3154673657 [test][util][promote integral] make computation of minimum required size more
precise; add testing for unsigned types;
2015-03-27 11:54:14 +02:00
Menelaos Karavelas
74556828af [util][promote integral] re-implement the mpl::list loop using MPL list iterators;
add support for unsigned integral numbers (including a template parameter that
indicates whether they should be promoted to signed or unsigned numbers);
be more precise on the (bit) sizes required for the promoted type;
2015-03-27 11:50:38 +02:00
Menelaos Karavelas
90c2c5f288 [policies][relate][intersection points] move calls to get<> out of down-cast
of promoted type to coordinate type
2015-03-27 11:27:27 +02:00
Menelaos Karavelas
eb0dfd1b5d [test][util][promote integral] add tests for the unsigned types:
unsigned char, unsigned short, unsigned int, unsigned long, std::size_t;
add test for the type signed char;
2015-03-26 18:51:11 +02:00
Menelaos Karavelas
2651afa92b [util][promote integral] fix issue with boost::mpl::if_c not allowing
enum values as return types
2015-03-26 16:31:14 +02:00
Menelaos Karavelas
3e5f6db4a7 [test][algorithms][intersection] add missing include boost/config.hpp;
add better testing for the existence of int64_t;
2015-03-26 14:25:47 +02:00
Menelaos Karavelas
9412f39b4d [doc][release notes] add (fixed) tickets #10658 and #11121 to release notes 2015-03-26 14:14:25 +02:00
Menelaos Karavelas
001a73127a [test][string_from_type] guard specialization for boost::long_long_type with
the BOOST_HAS_LONG_LONG macro; add specializations for long and int64_t (the
latter guarded by a macro) and modify the return values for long and
boost::long_long_type to match those returned by typeid(type).name() by clang++ and g++;
2015-03-26 14:05:48 +02:00
Menelaos Karavelas
0c891c7b8a [test][algorithms][intersection] add missing include for BOOST_GEOMETRY_CONDITION;
add testing for ticket #10868 with long and boost::long_long_type as coordinate type;
2015-03-26 14:04:30 +02:00
Menelaos Karavelas
e3f30bbc15 [test][algorithms][intersection] add testing for the test case in Boost Trac ticket #10868 2015-03-26 13:50:39 +02:00
Menelaos Karavelas
37baa56009 [test][algorithms][difference] add tests for the test cases in Boost Trac
tickets #10658 and #11121; modified testing of ticket #10835 by using the
data from overlay_cases.hpp
2015-03-26 13:40:09 +02:00
Menelaos Karavelas
92d513243d [test][algorithms][overlay] add test cases from Boost Trac tickets #10658, #10835, #10868 and #11121 2015-03-26 13:38:08 +02:00
Menelaos Karavelas
15e83e1a19 [test][util][promote integral] uncomment commented include;
make test for custom integral types always active;
2015-03-26 11:20:13 +02:00
Menelaos Karavelas
6f37921db3 [test][algorithms][difference] update results for test case "ggl_list_20120717_volker" 2015-03-26 11:13:58 +02:00
Menelaos Karavelas
b20a6bb209 [test][algorithms][difference] fix output for test case for ticket #10835 2015-03-26 11:07:08 +02:00
Menelaos Karavelas
620b95acde [doc][release_notes] update release notes: ticket #10835 is now addressed 2015-03-26 08:55:43 +02:00
Menelaos Karavelas
e0a0b8e3b1 [policies][relate][intersection_points] promote values to a larger integral
type in order to avoid overflow when computing the products:
  ratio.numerator() * dx     and     ratio.numerator() * dy
This change fixes ticket #10835
2015-03-26 08:49:18 +02:00
Menelaos Karavelas
a5ec906e6f [test][algorithms][difference] add unit test with the data reported in ticket #10835 2015-03-26 08:47:44 +02:00
Menelaos Karavelas
b87c59375a [test][util][promote integral] add unit test for the promote_integral meta-function 2015-03-26 08:45:45 +02:00
Menelaos Karavelas
abbb664226 [util][promote integral] add meta-function promote_integral<T> that promotes
a fundamental integral type T to another integral type with at least twice
the size of T
2015-03-26 08:44:08 +02:00
Barend Gehrels
a92e05f283 Merge branch 'bg-prepare' 2015-03-25 17:42:36 +01:00
Barend Gehrels
9afda34db5 Merge branch 'develop' into bg-prepare
Conflicts:
	include/boost/geometry/extensions/contrib/ttmath_stub.hpp
2015-03-25 17:38:14 +01:00
Barend Gehrels
0b53e62bf2 Merge branch 'develop' into feature/buffer 2015-03-25 12:27:16 +01:00
Barend Gehrels
06a077aa1e Merge branch 'develop' of github.com:boostorg/geometry into develop 2015-03-25 12:24:52 +01:00
Barend Gehrels
b3d7f8c82a [test][buffer] Add % difference to verify results more conveniently 2015-03-25 12:23:20 +01:00
Barend Gehrels
a5535e0f39 [test][buffer] Fix expected values for country_buffer, which were not yet
updated after commit
64ee58ed46
(Fix calculation of the number of points in round buffer)

New areas are changed max 0.2% w.r.t. old areas, and are in general
closer to what PostGIS gives
2015-03-25 12:22:24 +01:00