Commit Graph

377 Commits

Author SHA1 Message Date
Sébastien Loriot 483f69728e Refresh branch 2018-02-12 22:21:38 +01: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
Laurent Rineau a64c2773c9 Make <CGAL/Polynomial/Cached_extended_euclidean_algorithm.h> thread-safe
The last bug detected by this PR was actually due to a global static
variable. Now that it is a static variable in a function, like others,
the memory de-allocations seem to be done in the right order (even with
Boost implementation of TLS).

Thanks Sébastien @sloriot for the patch.
2017-01-09 15:12:13 +01:00
Laurent Rineau c826500c7d Merge pull request #1551 from mglisse/Number_types-gmpxx_coercion-glisse
Misc GMPXX fixes
2016-10-20 09:47:39 +02:00
Marc Glisse 1c6cf4b557 Replace ?: with 'if' for expression templates. 2016-10-15 19:48:25 +02:00
Sébastien Loriot 6f122cfa1a move unused files to archive 2016-10-06 09:53:38 +02:00
Laurent Rineau 258718b353 use CGAL_STATIC_THREAD_LOCAL_VARIABLE_0 2016-10-03 15:10:32 +02:00
Andreas Fabri 2b3a94ef0e Make variables thread local 2016-08-31 17:32:03 +02:00
Laurent Rineau 0c690014b7 Remove all usage of CGAL_LEDA_VERSION
Now, LEDA version >= 6.0 is required if `CGAL_USE_LEDA` is toggled.
2016-08-25 14:38:16 +02:00
Andreas Fabri beb1417477 remove unused header files; remove commented includes; changed include paths 2016-02-15 14:20:12 +01:00
Andreas Fabri 7eede75933 replace if with ()?: 2016-01-21 09:34:15 +01:00
Andreas Fabri 4fec754ef8 put static into the macro and rename it 2015-12-02 20:40:15 +01:00
Andreas Fabri 9c08d41a54 Change the macro CGAL_THREAD_LOCAL_VARIABLE(TYPE,VAR,VAL)
VAL is the parameter to the variable VAR
2015-11-11 11:16:16 +01:00
Andreas Fabri 47a41ccab0 cleanup 2015-10-01 12:38:55 +02:00
Andreas Fabri 3d4a1be429 WIP with Clement 2015-10-01 09:47:47 +02:00
Andreas Fabri 220651bc88 Use CGAL_THREAD_LOCAL as thread_local only comes with VC201 2015-09-04 18:09:50 +02:00
Jane Tournois 629983854e attempt to fix the use of "inline"
the warning C4396 happens for these functions on msvc2015

----------------------------------------------
Compiler Warning (level 2) C4396
Visual Studio 2008
"name" : the inline specifier cannot be used when a friend declaration refers to a specialization of a function template

A specialization of a function template cannot specify any of the inline specifiers. The compiler issues warning C4396 and ignores the inline specifier.
To correct this error
    Remove the inline, __inline, or __forceinline specifier from the friend function declaration.
----------------------------------------------
2015-08-11 17:14:46 +02:00
Sébastien Loriot 1118177959 fix unused type warnings 2015-07-23 09:27:55 +02:00
Sébastien Loriot 691689e165 avoid unused typedefs warnings 2015-07-22 14:18:39 +02:00
Sébastien Loriot 3e037f0f15 fix warnings 2015-07-16 14:44:56 +02:00
Laurent Rineau c18c93023a More #include
When CORE_arithmetic_kernel and LEDA_arithmetic_kernel are used, then
one should have:
  #include <CGAL/CORE_arithmetic_kernel.h>
  #include <CGAL/LEDA_arithmetic_kernel.h>
2014-06-24 18:10:07 +02:00
Andreas Fabri b75c4ccf3e Split the copy-constructor with a default argument in two constructors 2014-03-18 15:59:55 +01:00
Laurent Rineau 20a339bf1b Fix warnings -Wunused-local-typedefs 2013-12-12 18:25:20 +01:00
Andreas Fabri c3cce8a8fa remove unused typedefs and wrap in assertion_code() 2013-09-18 15:06:46 +02:00
Andreas Fabri 6c547e5663 Mainly added includes 2013-09-13 22:24:30 +02:00
Andreas Fabri 70cd219647 Merge branch 'CGAL-fix_warnings-GF' of ssh://scm.cgal.org/var/git/cgal into CGAL-fix_warnings-GF 2013-03-20 10:31:34 +01:00
Andreas Fabri 46f0efa200 Wrap in CGAL_assertion_code(..) 2013-03-20 08:32:20 +01:00
Sébastien Loriot 79efc5f76f follow up of 2a71e019: VC performance warning 2013-03-15 12:30:29 +01:00
Sébastien Loriot 2a71e01946 remove int to bool conversion performance warning with VC 2013-03-15 10:34:03 +01:00
Sébastien Loriot 660c6b99ec Revert "replace bitwise with Boolean operators"
This reverts commit d4c53f845d.
2013-03-15 10:31:57 +01:00
Andreas Fabri d4c53f845d replace bitwise with Boolean operators 2013-03-11 19:50:31 +01:00
Laurent Rineau 51ea960be6 Fix warnings about unused types or variables. 2013-02-08 16:50:02 +01:00
Laurent Rineau d19578725b Fix warnings 2013-02-07 18:15:23 +01:00
Andreas Fabri c029f702a3 use more types 2013-02-07 11:02:14 +01:00
Andreas Fabri 2f04928ba7 remove 3 unused typedefs in CGAL/Polynomial/resultant.h 2013-02-06 15:59:45 +01:00
Andreas Fabri 7a17cc98a4 deal with Polynomial (only partially), Subdivision_method, Surface_mesher, Surface_reconstruction 2013-01-31 09:18:28 +01:00
Eric Berberich 672aa31883 template instantion of PT in partial specialization is ... weird 2012-10-16 10:17:31 +00:00
Eric Berberich ab1d8568a0 LiS_HAVE_CORE -> CGAL_USE_CORE 2012-08-22 09:06:07 +00:00
Eric Berberich f22cbb51f4 fixed various compile problems
LiS_HAVE_CORE -> CGAL_USE_CORE
LiS_HAVE_NTL -> CGAL_USE_NTL
gcd -> gcd_
gcd_utcf -> gcd_utcf_
Comment: This file has not been touched for a while,
but now that NTL is supported, it's back in life.
2012-08-20 09:45:09 +00:00
Laurent Rineau db194534c7 First big patch to fix -Wunused-local-typedefs
-Wunused-local-typedefs is a new warning flag of gcc-4.7, and it will enabled
 by -Wall since gcc-4.8 (not yet released).

The fix is a big set of removals of unused typedefs (or comments, or moves,
depending on the context).
2012-08-01 13:29:16 +00:00
Marc Glisse 4d4f9adb55 Missing standard includes. 2012-07-27 12:05:53 +00:00
Eric Berberich a454f3ccf3 removed some compiler warnings 2012-07-06 07:19:16 +00:00
Andreas Fabri 2bfc6535bf Fix for Windows 'min/max' bug 2012-01-23 08:41:10 +00:00
Andreas Fabri a213593dff Fix for <windows.h> bug 2012-01-21 08:36:43 +00:00
Andreas Fabri 628abfbb4c Fix for Windows 'min/max' bug 2012-01-19 08:09:04 +00:00
Andreas Fabri c45cc051dd Fix for Windows 'min/max' bug 2012-01-18 09:57:46 +00:00
Michael Hemmer 7a406177ef rm use of assert 2012-01-17 14:54:29 +00:00
Laurent Rineau a46f5ed05d Add a copyright and license notice 2012-01-16 14:27:54 +00:00
Laurent Rineau 99a28b4bc8 Missing "#include <cassert>" for assert. 2012-01-16 10:29:14 +00:00
Laurent Rineau 27383e7ee1 merge from next 2011-10-17 16:18:46 +00:00
Sébastien Loriot 961d58fa4b update files with incorrect license headers (QPL but should be LGPL) 2011-10-10 16:07:44 +00:00
Michael Hemmer 7c31f2f284 merge from next 2011-10-10 14:02:41 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Sébastien Loriot 1046e461e7 thread-safe static Polynomial::get_default_instance() 2011-09-08 10:04:15 +00:00
Guillaume Damiand a29c905ee0 Replace BOOST_STATIC_ASSERT by CGAL_static_assertion. 2011-08-31 14:30:07 +00:00
Michael Hemmer 5ca5d133aa minor fix 2011-07-13 14:50:58 +00:00
Sébastien Loriot 8ce2048aea add #include<CGAL/config.h> before any directive CGAL_USE_* 2011-03-02 18:52:57 +00:00
Sébastien Loriot ae62b2ae4d remove warnings 2011-02-24 16:36:04 +00:00
Michael Hemmer ab9d38dab4 minor bug fix in generation of sparse polynomials for tests 2010-11-04 13:47:59 +00:00
Michael Hemmer 7d24c3bb9f fixing a very old bug 2010-11-04 12:48:47 +00:00
Andreas Fabri 92829bfe28 Don't call Random::get_int(0,0) as [0,0) is not well defined 2010-10-06 06:17:09 +00:00
Andreas Fabri 56debebe07 Don't call Random::get_int(0,0) as [0,0) is not well defined 2010-10-05 14:58:11 +00:00
Laurent Rineau 9277a77b72 Fix all svn:keywords in */include/ 2010-10-04 11:00:27 +00:00
Michael Hemmer 37b8a8ba00 remove too expensive postcond 2010-09-03 12:46:16 +00:00
Michael Hemmer a5e7591328 return const & where possible 2010-09-02 15:33:28 +00:00
Michael Hemmer 648f5d1e1a fix minor bug in gcd_utcf 2010-08-17 09:20:10 +00:00
Sébastien Loriot 301b04954e update testsuite to avoid assert(false)
add a cout comments when nothing is tested (no arithmetic kernel)
update macro
2010-08-12 13:49:08 +00:00
Michael Hemmer f7731fc15e use f==g before computing the gcd(f,g) 2010-08-04 15:30:42 +00:00
Michael Hemmer e786da1314 use static default instance in default constructor 2010-08-03 11:18:47 +00:00
Michael Hemmer 200244a755 fix for VC++ 2010-07-09 06:50:24 +00:00
Michael Hemmer 4fa9589ab7 bugfix for i686_Cygwin-Vista_MSVS2008-Release-32bits 2010-07-08 15:04:38 +00:00
Michael Hemmer de81cb08f8 added missing test for is_square_free
reduce costs of test for square_free_factorization
2010-07-08 15:04:00 +00:00
Michael Hemmer f2fef56a53 consistent use of struct/class 2010-07-08 10:37:04 +00:00
Andreas Fabri 625582b52e perform static_cast<int> as Polynomial degree is bound by int not size_t 2010-06-22 09:26:00 +00:00
Michael Kerber 4377bda5fe Introduced cast-to-void to avoid compiler warnings 2010-06-18 15:10:29 +00:00
Michael Kerber f39ad3b38e Make pedantics happy 2010-06-18 15:00:20 +00:00
Sébastien Loriot 52317dd49f add python script (replace_CGAL_NAMESPACE.py) to replace CGAL_BEGIN_NAMESPACE and CGAL_END_NAMESPACE
by namespace CGAL { and } //namespace CGAL. in all .h and .cpp files
in a directory.
Apply it to all packages in the trunk
Remove macro definition from the config.h file.
2010-06-09 07:37:13 +00:00
Michael Hemmer 65d67a3591 move Wang traits spec into Sqrt_extension 2010-05-05 16:04:03 +00:00
Michael Hemmer 08220653fc went into AST 2010-05-05 16:00:25 +00:00
Michael Hemmer 7622de47d7 rm comments 2010-05-05 15:20:34 +00:00
Michael Hemmer a6d6b78d52 rm comment 2010-05-05 15:19:28 +00:00
Michael Hemmer 0d2cb98390 move Get_arithmetic_kernel specializations into correct packages 2010-05-05 14:19:26 +00:00
Michael Hemmer 995594696e extend constructor from iterator range such that it allwos int, ICoeff and Coeff
-This lie, and those below, will be ignored--

M    Test/_test_polynomial_traits_d.h
M    Polynomial_traits_d.h
2010-04-30 11:37:33 +00:00
Michael Hemmer 49e547c7db rm cout 2010-04-30 07:00:55 +00:00
Michael Hemmer 17cf111f69 make Polynomial explicit constructible from Coeff/ICoeff, which prevents bugs 2010-04-28 12:31:42 +00:00
Michael Hemmer 3f748c9055 remove some unnecessary function overloads 2010-04-22 11:20:50 +00:00
Michael Hemmer 028e6132d9 -Wall -pedantic -Wno-long-long -Wstrict-overflow=0 2010-04-21 16:20:47 +00:00
Michael Hemmer d057a419f3 fixed wrong fwd declarations 2010-04-20 09:43:03 +00:00
Michael Hemmer cd719b5db5 rename internal gcd/gcd_utcf to gcd_/gcd_utcf_ 2010-04-19 12:29:57 +00:00
Michael Kerber e8e247ac50 Subresultants with cofactors now also work for equal degrees 2010-04-14 14:31:50 +00:00
Michael Kerber f131890356 Bugfix: New algorithm for subresultants with cofactors 2010-04-13 19:55:57 +00:00
Eric Berberich 3458ca869d added this-> 2010-03-31 08:09:52 +00:00
Michael Hemmer a29fd3130f added missing include 2010-03-16 14:49:49 +00:00
Sylvain Pion 85dc12f2a7 Remove empty lines at beginning and end of files
(apply Scripts/developer_scripts/remove_empty_lines.pl).
2010-02-01 12:55:28 +00:00
Laurent Rineau 6e1b0d9e98 Merged revisions 53794,53805,53807,53812,53818 via svnmerge from
svn+ssh://lrineau@scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.6-branch

........
  r53794 | spion | 2010-01-26 11:02:56 +0100 (Tue, 26 Jan 2010) | 6 lines
  
  Undo revision 53764, since it triggered problems in the Surface_mesher test-suite
  (probably a bug there, but it's a bit late to investigate before 3.6-beta) :
  
    Improve locate() reproducibility.   (backport of trunk's revision 53763).
........
  r53805 | spion | 2010-01-26 17:09:59 +0100 (Tue, 26 Jan 2010) | 9 lines
  
  Backport trunk revisions 53799 and 53804 :
  
    Make locate() deterministic using Boost RNGs.
    The previous approach using a local CGAL::Random failed because it still uses a
    global state through drand48()...
  
    Replace CGAL::Random by Boost RNG (with geometric distribution)
    in the hierarchy as well, to avoid global state sharing issues.
........
  r53807 | penarand | 2010-01-26 19:32:31 +0100 (Tue, 26 Jan 2010) | 3 lines
  
  set RS compilation flag in Mac OS when using g++<4.3
........
  r53812 | penarand | 2010-01-27 09:32:13 +0100 (Wed, 27 Jan 2010) | 3 lines
  
  removed extra ';' from _test_polynomial_traits_d.h
........
  r53818 | lrineau | 2010-01-27 14:43:08 +0100 (Wed, 27 Jan 2010) | 8 lines
  
  Merge from trunk:
    | ------------------------------------------------------------------------
    | r53811 | afabri | 2010-01-27 09:20:18 +0100 (Wed, 27 Jan 2010) | 1 line
    | 
    | Switch from CGAL::Random to boost::rand48 as T3 did so
    | ------------------------------------------------------------------------
........
2010-01-27 13:44:08 +00:00
Eric Berberich ae85488225 removed old remark (authorized commit by LR) 2010-01-16 16:31:25 +00:00