Commit Graph

152 Commits

Author SHA1 Message Date
Laurent Rineau 73f4734525 Fix permissions 2014-05-15 18:33:36 +02:00
Efi Fogel 1ec2516b0e minor fix for master---replaced non utf8 characters in comments with utf8 2014-03-31 16:08:05 +03:00
Laurent Rineau d47f920919 Fix a compilation error
The error, on clang, is:

include/CGAL/Algebraic_structure_traits.h:362:39: error: declaration of 'Type_' shadows template parameter
            typedef typename CT::Type Type_;

The bug was introduced by the following commit:
  | commit 02e17dfdf0
  | Author: Michael Hemmer <mhsaar@gmail.com>
  | Date:   Mon Sep 2 18:28:55 2013 +0300
  |
  |     fixed boost::is_same<Type,Type>
  |
  |     minor fix for master
2013-09-09 14:07:00 +02:00
Michael Hemmer 02e17dfdf0 fixed boost::is_same<Type,Type>
minor fix for master
2013-09-03 09:29:54 +03:00
Sébastien Loriot a18a34bbbe Merge branch 'Algebraic_foundations-make_rational-glisse' 2013-04-15 16:37:31 +02:00
Andreas Fabri e6d101d9fb remove unused typedefs 2013-03-05 11:50:05 +01:00
Marc Glisse 48388241a0 Add make_rational(FT) and make_rational(pair). 2013-02-22 15:47:20 +01:00
Laurent Rineau 51ea960be6 Fix warnings about unused types or variables. 2013-02-08 16:50:02 +01:00
Laurent Rineau e87dad0f95 Fix all warnings in demo/Polyhedron/
The compilation was fix g++-4.8, and the flags:
  --std=c++11 -frounding-math Wall -Wno-array-bounds -Wno-uninitialized
2013-02-06 17:03:20 +01:00
Laurent Rineau f8b9521b3b Fix headers of Algebraic_foundations
Mostly missing headers.

But sometimes I have removed the use of <CGAL/number_type_basic.h>, because
that header is hell for the moment.
2012-10-08 08:41:43 +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
Philipp Möller 811daa2ad4 Silence unused parameter warnings when building. 2012-06-22 10:05:26 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Sébastien Loriot dff6dda8b3 Remove from copyright holder
Freie Universitaet Berlin (Germany), Martin-Luther-University Halle-Wittenberg
(Germany) and RISC Linz (Austria) as they transfer the copyright to other
sites.
2011-09-21 19:46:31 +00:00
Guillaume Damiand a29c905ee0 Replace BOOST_STATIC_ASSERT by CGAL_static_assertion. 2011-08-31 14:30:07 +00:00
Marc Glisse 879c4eb81c Enable implicit Lazy_exact_nt conversions only if there exists an implicit
conversion between the exact types.

I'll add something similar for explicit conversions if required.
2011-03-08 10:27:31 +00:00
Marc Glisse 74e8ca041c directly include gmpxx 2011-03-07 14:13:28 +00:00
Marc Glisse a02c655bb8 Disambiguate make_rational(3,2) 2011-03-06 20:52:15 +00:00
Laurent Rineau 6d2b695558 Oops: typo. The first values couple is (-5, -2), and not (-5, -5). 2011-03-02 10:00:36 +00:00
Laurent Rineau ab296856c7 New version of test_implicit_interoperable_for_real_embeddable: the
variable a and b cannot be volatile, but they can be initialized from
volatile values. Again, the goal is to prevent constant propagation.
2011-03-02 09:59:27 +00:00
Laurent Rineau 942a071374 Workaround for VC9/VC10 (in the testsuite only)
With /O2 and /fp:strict, MSVC produces a wrong assembler for the
following code:

    int main(){
      int i = 3;
      float f = 3.f;
      bool b = (f>= i);
      return b ? 0 : 1;
    }

The issue is with constant propagation and /fp:strict in the optimizer. The
workaround is to use volatile to prevent the constant propagation.
2011-03-01 16:54:21 +00:00
Michael Hemmer 7fb350c83f added missing const for operators 2010-11-28 12:17:58 +00:00
Michael Hemmer 63de75bed2 make it thread safe 2010-11-09 10:41:37 +00:00
Sébastien Loriot 4dbad8e21e add missing typedef for Inverse when use within Lazy.
add comment about static variable
2010-11-08 14:42:49 +00:00
Michael Hemmer b39ede765c added functor Inverse + global function to AF (with respect to multiplication) 2010-11-04 13:57:35 +00:00
Sébastien Loriot 296d50ca07 typo in maro 2010-08-12 15:06:15 +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 fa4d721510 test for result_type is Cast 2010-04-30 10:18:33 +00:00
Michael Hemmer 028e6132d9 -Wall -pedantic -Wno-long-long -Wstrict-overflow=0 2010-04-21 16:20:47 +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
Luis Peñaranda 95a6d613ee Remove a few "warning: extra ';'" with g++ -pedantic 2009-11-26 10:07:36 +00:00
Laurent Rineau 83912b2952 Massive fix of svn:keywords properties, and $URL$ keyword. 2009-10-20 08:59:26 +00:00
Sylvain Pion 8573fe26ce Rename CGALi to internal. 2009-08-24 17:10:04 +00:00
Michael Hemmer 27a1a26cbd minor bug fix for i686_Linux-2.6_g++-3.4.6_CentOS-5.1-O2 2009-07-02 07:09:52 +00:00
Michael Hemmer 2561a432dd avoid clash of CGAL::min/max with std::min/max
e.g. boost does: "unsing std::min" plus an unqualified call of min
2009-04-29 13:57:45 +00:00
Michael Hemmer 3753a9e337 added version for long 2009-04-29 13:53:31 +00:00
Sylvain Pion 6cc542446d Fix some typos in the protect macro names.
Use a form "#ifndef" more consistently.

The idea is to automatize most of the verification of the consistency
in the names used in the #ifndef and the following #define using a simple :

grep -r -m 1 '#ifndef' */include/CGAL  | grep CGAL_ | cut -d' ' -f2 | sort > ifndef.macros
grep -r -m 1 '#define' */include/CGAL  | grep CGAL_ | cut -d' ' -f2 | sort > define.macros
diff ifndef.macros define.macros
2009-04-08 11:54:51 +00:00
Michael Hemmer a992d6ba91 this file is obsolet 2008-12-09 12:45:02 +00:00
Andreas Fabri 30afd352eb Help VC8 to disambiguate 2008-12-09 12:24:23 +00:00
Michael Hemmer f4cb738599 mv tests for implicit interoperable to _test_coercion_traits.h 2008-12-09 10:42:06 +00:00
Michael Hemmer 959f0738a0 wrap up Test/_test_coercion_traits.h
move tests for binary functors into test for explicit interoperable 
as they are supposed to
2008-12-09 10:41:01 +00:00
Michael Hemmer 52fcc0db89 bug fix, a type should be implicit interoparable with it self. 2008-12-09 10:05:42 +00:00
Michael Hemmer e723d9e2a2 fixed include guard 2008-12-08 16:14:42 +00:00
Michael Hemmer 52a747b55f added license header 2008-12-08 06:26:27 +00:00
Andreas Fabri c84186a372 Add license header 2008-12-06 21:45:17 +00:00
Andreas Fabri 3c07f1bf21 Use CGAL_USE_LONG_LONG instead of a plain removal 2008-11-21 10:11:44 +00:00
Andreas Fabri 2344345b11 Don't do anything for long long 2008-11-21 09:54:34 +00:00
Michael Hemmer a4d7285cb8 added test for implicit interoperable 2008-10-13 12:33:45 +00:00
Michael Hemmer c78b05b739 rename Real_embeddable_traits::Sign Sgn
added RET::Boolean, RET::Sign, RET::Comparison_result
2008-09-18 15:35:55 +00:00
Michael Hemmer cf6fe3a5ec added public type Boolean to Algebraic_structure_traits 2008-09-18 13:53:47 +00:00
Sylvain Pion 4606422089 Capitalize protect macro names. 2008-08-20 08:52:46 +00:00
Sylvain Pion 3f21b409bf Comment out unused arguments names. 2008-08-20 08:49:04 +00:00
Michael Hemmer 182c550580 warp up RealEbeddable_traits, i.e., mv RET_base into internal namespace 2008-08-05 13:42:15 +00:00
Michael Hemmer 6001ee68a9 added missing typedef for Divides in AST_base 2008-08-04 14:05:58 +00:00
Michael Hoffmann 55a10f768a Remove dependency on CGAL/functional -> replace Unary_function and
Binary_function by std:: counterparts.
2008-07-23 14:58:05 +00:00
Sylvain Pion 79864c0c8e Remove Arity_tag. 2008-07-22 12:29:01 +00:00
Michael Hemmer 5ae691fd3b added
AST::Divides functor, required by IntegralDomain
 default implementation
 tests 
 function CGAL::divides
2008-07-16 09:24:50 +00:00
Michael Hemmer 21eb003459 changed names of template arguments in MACRO to avoid name conflicts 2008-07-16 08:28:26 +00:00
Michael Hemmer 2010fd7214 revert changes for CGAL::Compare, since it is used for other non-realembeddable types as well 2008-07-08 07:03:41 +00:00
Michael Hemmer b128dc3ffa adopt changes to Sgn for all functors 2008-07-07 10:34:31 +00:00
Sylvain Pion 2b279e8bf3 The CGAL::Sgn functor was not properly updated following the Algebraic Foundations. 2008-07-06 16:07:34 +00:00
Michael Hemmer 6debf02b48 Chinise_remainder_traits is a class (not a struct) 2008-04-29 14:14:49 +00:00
Michael Hemmer 580a68180f mv Polynomial/ipower.h Algebraic_foundations/ipower.h
since it is a more general function used in several packages (from EXACUS)
2008-04-01 13:44:37 +00:00
Michael Hemmer 9ea46f65a0 changes according to new possition of test files for concept checks 2008-04-01 10:22:16 +00:00
Michael Hemmer 9cbe349ce0 mv files for concept checking into Algebraic_foundations 2008-04-01 09:50:22 +00:00
Michael Hemmer f60be6045d added tests
mv definition of Algebraic_extension_traits<Sqrt_exgtension<...> > to 
Number_types/include/CGAL/Sqrt_extension/Algebraic_extension_trait.h
2008-03-31 12:47:36 +00:00
Michael Hemmer 7dcb9b1258 new / more robust version .-) 2008-03-31 12:43:38 +00:00
Michael Hemmer c05f1298fa added global function CGAL::scalar_factor 2008-03-31 12:32:17 +00:00
Michael Hemmer a00b6b3465 added Algebraic_structure_traits_extended.h
extenison to Algebraic_structure_traits.h
2008-03-31 12:30:32 +00:00
Michael Hemmer 2e357ae3ce added Chinese_remainder traits 2008-03-31 12:29:00 +00:00
Michael Kerber 9283bbfae2 NiX -> CGAL 2008-01-15 14:14:42 +00:00
Michael Hemmer 17ad244833 added extended_eucliden_algorithm (incl tests) 2008-01-13 11:50:04 +00:00
Sebastian Limbach 32b0041c55 Removed some more unnecessary semicolons. 2007-10-25 14:18:35 +00:00
Sebastian Limbach b9e29f7cbe Moved Scalar_factor_traits specialization for Sqrt_extension number type from Algebraic_foundations package to the Sqrt_extension-SFT file in the Number_types package. 2007-09-03 13:45:21 +00:00
Sylvain Pion 4da7713aa8 Remove obsolete config flag CGAL_CFG_NO_STDC_NAMESPACE and rename
its dependant macro CGAL_CLIB_STD to "std".
2007-08-08 15:59:25 +00:00
Michael Hemmer 549df17b40 use is_zero if possible 2007-05-16 11:13:18 +00:00
Sylvain Pion e83ce7bf2c Use CGAL_precondition_code() to avoid warning. 2007-04-16 16:43:46 +00:00
Andreas Fabri 5ad17aa046 De-ice VC7 2007-04-11 13:32:10 +00:00
Michael Hemmer ea08d610f5 dont_submit Algebraic_foundations/../Scalar_factor_traits.h
dont_submit Algebraic_foundations/../Algebraic_extension_traits.h
moved specs for Sqrt_extension of traits into *traits.h, 
since Sqrt_extension is in release.
2007-04-10 13:54:59 +00:00
Michael Hemmer e85e499142 in function div_mod: set void as result type
,i.e., do not take it from the functor.
2007-04-03 11:08:31 +00:00
Andreas Fabri de1fc3b8cb removed unused parameters 2007-03-26 08:19:03 +00:00
Sylvain Pion e8513e1395 Use std::iterators_traits to fetch the value_type of an iterator. 2007-03-18 17:30:43 +00:00
Michael Hemmer cec05315eb update license headers 2007-03-15 09:05:20 +00:00
Michael Hemmer 8029c784ba rm CGALi::Is_field etc. 2007-03-12 14:23:39 +00:00
Michael Hemmer 63fb1db33b rm fwd of Min/Max 2007-03-08 13:39:57 +00:00
Andreas Fabri 721905d749 Moved from Algebraic Foundations to Number Types 2007-03-08 10:51:34 +00:00
Sylvain Pion b5a890f7fb remove warning 2007-03-03 08:18:51 +00:00
Sylvain Pion 415fb42d07 remove warning 2007-03-03 08:15:48 +00:00
Andreas Meyer 1996f8c159 added a mpl struct is_same_or_equal, similar to
boost::is_same / boost::is_base_and_derived
2007-02-17 21:25:09 +00:00
Michael Hoffmann da8893f720 Comment specialized compare function.
(Confuses Sunpro and seems superfluous...)
2007-02-09 13:31:57 +00:00
Marc Glisse 94b4fda133 More ; cleanup. 2006-12-29 11:09:34 +00:00
Michael Hemmer e6ff912234 rm typedef void Type in default CT_traits 2006-12-20 13:48:02 +00:00
Laurent Saboret 9d0d302a87 Fixed svn properties of whole trunk 2006-12-18 09:37:55 +00:00
Michael Hemmer cec1d4cb5b added tag Is_numerical_sensitive 2006-12-15 17:49:14 +00:00
Michael Hemmer f360dcb671 added test Scalar_factor_traits 2006-12-11 15:19:54 +00:00
Michael Hemmer 8fc9873ef5 default for Scalar_factor_traits 2006-12-11 11:09:30 +00:00
Michael Hemmer 5170680602 default for Algebraic_extension_traits 2006-12-11 11:09:09 +00:00
Michael Hemmer 67a346406b rename AST::Algebraic_structure_tag -> AST::Algebraic_category 2006-11-28 07:45:49 +00:00
Michael Hemmer d931482ce2 rename:
FractionTraits::Numerator -> Numerator_type
FractionTraits::Denominator -> Denominator_type
2006-11-24 11:26:22 +00:00
Michael Hemmer f002c6fd13 renaming:
AlgebraicStructureTraits::Algebraic_structure -> ..::Type
RealEmbeddableTraits::Real_emebddable -> ..::Type
CoercionTraits::Coercion_type -> ..::Type
FractionTraits::Fraction -> ..::Type
2006-11-24 10:47:04 +00:00