Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Kernel traits to distinguish kernel capability?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Kernel traits to distinguish kernel capability?


Chronological Thread 
  • From: ax487 <>
  • To:
  • Subject: [cgal-discuss] Kernel traits to distinguish kernel capability?
  • Date: Tue, 03 Sep 2013 16:26:21 +0200

Hello all,

I am currently trying to make my algorithms work with different types of
kernels: Up to now I have only been working using a kernel providing
exact construction, now I am trying to write a correct implementation of
my algorithm on a kernel that only provides exact predicates and uses
floating point based construction. Clearly this requires some additional
work. I would like to avoid that additional work on kernels providing
exact construction. To this end I need a method to tell if a given
kernel provides exact construction. I am currently working using
#ifdef's, but instead I would like use templates in my classes and
functions. What I need is something like a static function
`Kernel::provides_exact_construction()' which I could call in a method
like `template <class Kernel> void calculate(...)'. I did not find
anything like that in the documentation so far, is there a method to
obtain the information from CGAL?

ax487



Archive powered by MHonArc 2.6.18.

Top of Page