Commit Graph

99 Commits

Author SHA1 Message Date
Barend Gehrels
8d2d399746 feat: use tag_cast_t more and extract primary_single_tag 2024-10-09 17:34:41 +02:00
Barend Gehrels
d9eface3e8 [util] move bounds to geometry::util 2024-03-26 18:18:21 +01:00
Vissarion Fisikopoulos
d76ce3b0c1 Fix numeric_cast namespace in tests 2024-02-28 13:13:02 +02:00
Barend Gehrels
123c920b92 fix compilation of converter and is_base_of
by introducting boost::geometry::detail::numeric_cast
2024-02-25 11:07:45 +00:00
Vissarion Fisikopoulos
7c8c60625c Add missing headers so that all headers compile independently (#1154)
* Add missing headers so all header files compile independently

* Add github actions script to check if all headers compile independently

* Remove unused headers from algorithms (not detail) and core and fix headers in tests

* Fix typo in headers.yml and missing header in srs
2023-07-25 22:56:12 +03:00
Adam Wulkiewicz
fa4ff35d6a Fix Visual Studio warnings
- C4100 Unreferenced formal parameter
- C4127 Conditional expression is constant
- C4456 Declaration hides previous local declaration
- C4701 Potentially uninitialized local variable used
- C4702 Unreachable code
2023-07-01 17:58:04 +02:00
Adam Wulkiewicz
f42971a3f6 Merge branch 'develop' into fix/normalize_spheroidal 2022-02-08 17:25:29 +01:00
Barend Gehrels
9c18680f31 [fix] for integer coordinates, segment intersection now rounds to nearest point 2022-02-07 10:33:15 +01:00
Adam Wulkiewicz
f68a1312e7 [test][util] Add normalize spheroidal test. 2022-01-27 17:29:42 +01:00
Adam Wulkiewicz
4bdfe1bf05 [test] Fix warnings. 2021-08-13 17:44:13 +02:00
Adam Wulkiewicz
efff23114a [test] Fix static asserts by passing types. 2021-07-30 19:06:29 +02:00
Adam Wulkiewicz
08f7e66f79 [test] Drop library dependencies in tests.
If possible drop type_traits, mpl, typeof, foreach, assign.
Rearrange some includes.
2021-07-22 19:46:51 +02:00
Adam Wulkiewicz
ebbc58b52e Fix various warnings, e.g. remove unused variables, etc. 2021-07-05 14:15:38 +02:00
Adam Wulkiewicz
2fc1a3fe8f Add support for ranges passed by rvalue in range utilities.
This allows to pass temporary ranges and proxies without the need to
explicitly create variables.
2021-06-05 00:35:10 +02:00
Adam Wulkiewicz
50d1bfedc9 Support rvalue refs in range utils and use it. 2021-05-15 13:21:27 +02:00
Adam Wulkiewicz
51addc4c4d [util] Rename for_each_dimension.hpp to algorithm.hpp 2021-03-31 23:31:02 +02:00
Adam Wulkiewicz
d2c79d97a9 [util] Add for_each_dimension and use it in several places. 2021-03-21 02:41:22 +01:00
Adam Wulkiewicz
3402c9101d Replace boost::tuple with std::tuple or custom classes.
Modernize tuple support.
2020-10-21 16:21:06 +02:00
Barend Gehrels
45d624af9b [cleanup] remove HAVE_TTMATH and other occurances of ttmath 2020-10-07 14:05:28 +02:00
Adam Wulkiewicz
2654215e38 [test] Replace Boost.MPL/TypeTraits with std type_traits in tests. 2020-09-03 13:37:15 +02:00
Adam Wulkiewicz
2b74e42436 Merge branch 'develop' into feature/setops_output 2020-03-24 14:38:46 +01:00
Mateusz Łoskot
96db897fc5 Rename Jamfile.v2 to Jamfile (#679)
There is no reason to maintain the legacy .v2 file extension,
which is unnecessary clutter, may be confusing.
2020-03-08 23:50:18 +01:00
Adam Wulkiewicz
7efff6a996 [test][util][tuples] Add tests. 2019-11-18 23:52:52 +01:00
Adam Wulkiewicz
8597ed9fd2 [test][util][range] Add missing include. 2016-03-16 18:27:22 +01:00
Adam Wulkiewicz
0ecda93787 [test][util][range] Fix compilation errors on some platforms. 2016-02-17 05:24:32 +01:00
Adam Wulkiewicz
446280afc7 [test][range] Add test of range::back_inserter(). 2016-01-23 14:00:55 +01:00
Adam Wulkiewicz
58950ac91d [test][math] Add test for math::abs(). 2015-07-22 04:50:47 +02:00
Adam Wulkiewicz
b0b32d903e [test][util] Rename the tests. 2015-05-28 23:15:07 +02:00
Adam Wulkiewicz
1df894c44a [centroid][test] Update copyrights. 2015-05-26 00:44:56 +02:00
Adam Wulkiewicz
9aa2e642ee [test][math] Add tests for math::equals(). 2015-05-24 14:27:22 +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
Barend Gehrels
e56561481e [test] Added define to avoid default usage of multiprecision 2015-03-29 00:38:18 +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
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
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
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
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
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
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
b87c59375a [test][util][promote integral] add unit test for the promote_integral meta-function 2015-03-26 08:45:45 +02:00
Adam Wulkiewicz
37429b3234 [test] Fix select_most_precise test for Android.
On this platform sizeof(long double) == sizeof(double).
Conditionally test the combination of those types only if long double is
greater.
2015-03-20 18:04:50 +01:00
Adam Wulkiewicz
6fd35a3fb8 [test][util] Generate custom error message in select_most_precise test. 2015-03-18 17:25:57 +01:00
Barend Gehrels
65f57b1947 [test] move as_range to algorithms/detail 2015-03-11 19:07:16 +01:00
Samuel Debionne
e969a4c33a [test][util][range] Add tests for const pointer
Add tests for range iterator_range<const pointer> and pair<const
pointer>
2015-03-09 11:28:31 +01:00
Adam Wulkiewicz
8bd9144474 [test][util][range] Add tests for iterator_range<pointer> and pair<pointer>. 2015-03-04 14:21:50 +01:00
Adam Wulkiewicz
7603005e9f [test][util][range] Add test for pos() function. 2015-02-02 19:30:14 +01:00
Adam Wulkiewicz
9cfee81a09 [geometry] Replace tabs with spaces 2014-07-08 02:27:17 +02:00
Adam Wulkiewicz
004e4e465f [test][range] Shield part of a test with macro (storing NonMovable is std::vector<>) 2014-07-06 12:19:30 +02:00
Adam Wulkiewicz
17f08e3ac4 Merge pull request #66 from mkaravel/feature/debug_macro
Feature/debug macro
2014-06-22 15:29:16 +02:00
Adam Wulkiewicz
ba0906369e [range] Add support for invalidating resize() and workarounds for MSVC and MinGW.
Using of the iterator returned by erase() caused assertion failures (false positive) on MSVC with iterator debugging enabled.
MSVC std::vector can't store non-movable objects if rvalue references are supported.
MinGW std::vector can't store pointers.
2014-06-22 15:17:49 +02:00