Commit Graph

529 Commits

Author SHA1 Message Date
Mael Rouxel-Labbé 2848158354 Fix typos 2019-05-20 08:54:04 +02:00
Sébastien Loriot 124012d9f9 replace cpp11::array by std::array 2019-03-29 13:28:33 +01:00
Sébastien Loriot ce126b87c6 remove cpp11::copy_n, cpp11::prev, and cpp11::next and use std instead 2019-03-29 13:28:32 +01:00
Sébastien Loriot 82c13e6e74 remove cpp11 workaround in kernel related packages 2019-03-29 10:41:50 +01:00
Andreas Fabri 6853a9202d Fix Algebraic_kernel 2019-02-11 10:10:37 +01:00
Laurent Rineau 3ba6262fb5 Fix a warning [-Wmaybe-uninitialized] in Algebraic_kernel_d
```
[ 50%] Building CXX object CMakeFiles/Algebraic_kernel_d_2.dir/Algebraic_kernel_d_2.cpp.o
/usr/local/bin/c++  -DCGAL_TEST_SUITE=1 -DCGAL_USE_CORE=1 -DCGAL_USE_GMP -DCGAL_USE_GMPXX -DCGAL_USE_MPFI -DCGAL_USE_MPFR -I/home/cgal_tester/build/src/cmake/platforms/Ubuntu-latest-GCC6-Release/test/Algebraic_kernel_d/include -isystem /usr/include/x86_64-linux-gnu -I/home/cgal_tester/build/src/cmake/platforms/Ubuntu-latest-GCC6-Release/test/Algebraic_kernel_d -I/home/cgal_tester/build/src/cmake/platforms/Ubuntu-latest-GCC6-Release/include -I/mnt/testsuite/include  -DDONT_USE_BOOST_PROGRAM_OPTIONS -Wall -Wextra -O3 -DCGAL_NDEBUG -frounding-math   -Wall -frounding-math -o CMakeFiles/Algebraic_kernel_d_2.dir/Algebraic_kernel_d_2.cpp.o -c /home/cgal_tester/build/src/cmake/platforms/Ubuntu-latest-GCC6-Release/test/Algebraic_kernel_d/Algebraic_kernel_d_2.cpp
In file included from /mnt/testsuite/include/CGAL/Polynomial.h:44,
                 from /mnt/testsuite/include/CGAL/Algebraic_kernel_d_1.h:37,
                 from /mnt/testsuite/include/CGAL/Algebraic_kernel_d_2.h:31,
                 from /home/cgal_tester/build/src/cmake/platforms/Ubuntu-latest-GCC6-Release/test/Algebraic_kernel_d/Algebraic_kernel_d_2.cpp:25:
/mnt/testsuite/include/CGAL/Handle_with_policy.h: In member function 'void CGAL::Curve_pair_analysis_2<AlgebraicKernelWithAnalysis_2>::compute_event_x_coordinates_with_event_indices() const [with AlgebraicKernelWithAnalysis_2 = CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt, CORE::BigRat, CGAL::internal::Algebraic_real_rep<CORE::BigInt, CORE::BigRat>, CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>, CORE::BigRat> > >]':
/mnt/testsuite/include/CGAL/Handle_with_policy.h:1014:28: warning: '*((void*)&<anonymous> +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1014 |         Handle_policy::find( h);
      |         ~~~~~~~~~~~~~~~~~~~^~~~
/mnt/testsuite/include/CGAL/Handle_with_policy.h:1014:28: warning: '*((void*)&<anonymous> +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1014 |         Handle_policy::find( h);
      |         ~~~~~~~~~~~~~~~~~~~^~~~
/mnt/testsuite/include/CGAL/Handle_with_policy.h:1014:28: warning: '*((void*)&<anonymous> +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1014 |         Handle_policy::find( h);
      |         ~~~~~~~~~~~~~~~~~~~^~~~
```

The warning is because an uninitialized `optional` is copied (in a
`push_back()`). The fix is to use `emplace_back()` to construct it
directly in the vector, instead of copying it.
2019-02-08 10:33:04 +01:00
Andreas Fabri 873416e6da Fix Algebraic_kernel_d 2019-02-07 16:10:42 +01:00
Andreas Fabri 4ce4b6a89b Fix Algebraic_kernel_d 2019-01-31 14:12:22 +01:00
Andreas Fabri 5c4e0a3392 Fix Algebraic_kernel_d 2019-01-31 14:09:42 +01:00
Andreas Fabri 04eea7f742 Fix Algebraic_kernel_d 2019-01-31 13:57:09 +01:00
Andreas Fabri 8e4a74d3c4 Fix Algebraic_kernel_d 2019-01-31 13:55:37 +01:00
Andreas Fabri cc23699ea0 fix Arrangement_2 2019-01-28 09:14:59 +01:00
Andreas Fabri eaedab3c60 Fix Algebraic_kernel_d 2019-01-24 17:46:26 +01:00
Sébastien Loriot 76069002c8 fix initialization warning 2018-11-24 10:37:38 +01:00
Mael Rouxel-Labbé 26c857a431 Moved unary/binary_function to CGAL::cpp98 2018-06-13 15:58:19 +02:00
Mael Rouxel-Labbé 6283291c8a Moved CGAL::iterator to CGAL::cpp98 2018-06-13 15:58:19 +02:00
Andreas Fabri 654980580e class -> struct 2018-05-15 15:37:51 +02:00
Andreas Fabri 99bc374cce More forward declarations 2018-05-15 15:37:51 +02:00
Andreas Fabri 579b737fa8 Do not swap the pair in the testsuite 2018-03-16 21:40:24 +01:00
Laurent Rineau a06d390fd4 Merge pull request #2910 from luis4a0/Algebraic_kernel_d-RS_MPFR_compatibility-Luis
Algebraic kernel d RS-Fix compatibility of MPFR, MPFI and RS.
2018-03-09 18:41:16 +01:00
Luis Peñaranda 6200edcfaf Forbid MPFR 3.1.[3456] when using RS. 2018-03-08 10:12:42 +01:00
Laurent Rineau 85ce0157cf Merge pull request #2839 from afabri/STL_extension-replace_std_iterator-GF
STL_extension: Introduce CGAL::iterator
2018-02-23 17:34:57 +01:00
Andreas Fabri 52549b1145 STL_extension: Introduce CGAL::iterator as replacement for the deprecated std::iterator 2018-02-14 18:46:45 +00:00
Andreas Fabri df2e978158 Fix disable/enable warnings; Fix indentation 2018-02-13 14:02:40 +00:00
Sébastien Loriot 483f69728e Refresh branch 2018-02-12 22:21:38 +01:00
Andreas Fabri 05152f6f66 cast 2018-01-25 14:06:13 +00:00
Andreas Fabri 939da7ca04 fixes after the testsuite 2018-01-25 08:44:16 +00:00
Andreas Fabri 84d912dab6 fix initialization of Random 2018-01-24 13:46:47 +00:00
Andreas Fabri 63ddadf63f Address Issue #2764 2018-01-24 11:24:22 +00:00
Andreas Fabri 4c2b278f04 Algebraic_kernel_d 2018-01-24 10:26:27 +00:00
Simon Giraudot 6269309d86 Use CGAL include for boost counting/transform iterators everywhere 2018-01-23 11:09:52 +01:00
Andreas Fabri 18acb2ece9 Arrangements 2018-01-18 15:05:34 +00:00
Sébastien Loriot 0698f79aff add SPDX identifier for files under the LGPL-3+ license 2017-11-12 10:17:50 +01:00
Laurent Rineau 2b35bddfb2 Replace all std::binary_function by CGAL::binary_function 2017-10-04 16:36:32 +02:00
Laurent Rineau 7e9f756935 Replace all std::unary_function by CGAL::unary_function 2017-10-04 15:57:09 +02:00
Sébastien Loriot 1bba93acc7 explicit that the sign function is the one from CGAL to avoid ambiguity 2017-06-17 07:31:22 +02:00
Andreas Fabri 6f5df75fc1 typo 2017-05-02 08:50:52 +02:00
Andreas Fabri 89511dac57 Remove dynamic exception declarations 2017-04-29 11:18:11 +02:00
Andreas Fabri 5146949d35 Remove dynamic exception declarations 2017-04-27 08:27:43 +02:00
Andreas Fabri 1e92625291 Algebraic_kernel_d: Remove dynamic exception specifications. Fixes Issue #1886 2017-04-03 11:52:48 +02:00
Andreas Fabri 2ff17176fc make static variables thread local 2016-12-02 13:21:53 +01:00
Laurent Rineau 3686301c57 Merge pull request #1596 from afabri/Algebraic_kernel_d-fix_warning-GF
Use CGAL_assertion_code
2016-10-24 11:47:08 +02:00
Laurent Rineau b4cf181609 Merge pull request #1572 from luis4a0/Algebraic_kernel_d-add_assertions-Luis
Check for the MPFR version in RS-based AK
2016-10-24 11:47:02 +02:00
Laurent Rineau 3e0ab881c1 Merge pull request #1584 from afabri/Installation-compute_dependencies-GF
Make Algebraic_kernel_d independent from CGAL/Arr_enum.h
2016-10-20 09:47:42 +02:00
Andreas Fabri 165fd63364 Use CGAL_assertion_code 2016-10-19 14:38:49 +02:00
Luis Peñaranda 275581537b CGAL_NO_ASSERTIONS -> CGAL_NO_PRECONDITIONS 2016-10-18 12:57:49 -03:00
Andreas Fabri 76d751be01 Use CGAL_FALLTHROUGH 2016-10-17 13:45:42 +02:00
Andreas Fabri 554bd0fd26 Make Algebraic_kernel_d independent from CGAL/Arr_enum.h
Introduce Box_parameterization_2 in CGAL/enum.h
Add a typedef and constants in the Arrangement package to stay bw compatible
2016-10-17 11:56:43 +02:00
Luis Peñaranda bceff2255f Avoid also MPFR 3.1.3. Improve error message. 2016-10-13 10:17:59 -03:00
Luis Peñaranda 07fb6dd2a4 Abort compilation if MPFR is 3.1.4 or 3.1.5.
Those two versions have a bug in memory allocation. The bug appears when
changing the allocation functions back and forth. In the beginning, MPFR
3.1.4 and 3.1.5 gather the GMP allocation functions and always use them. If
they are changed, MPFR does never notice that. This behavior was removed in
a patch to 3.1.5, what means that everything should be OK with MPFR 3.2.0.
2016-10-12 18:36:01 -03:00