Subject: CGAL users discussion list
List archive
- From: "Thomas Zangl - Home" <>
- To: <>
- Subject: Using CGAL::sqrt and CGAL::Gmpq?
- Date: Tue, 7 Aug 2007 10:22:18 +0200
Hi!
I tried to remove the dependency on math.h's sqrt function (and the
need to convert the variable to_double). So I tried this:
typedef CGAL::Exact_predicates_exact_constructions_kernel K;
typedef K::FT dbl;
..
dbl dNormal = CGAL::sqrt(dSquared);
This gives me the following compile error:
src/IntersectionTools_3.cpp:422: error: conversion from `CGAL::Null_tag' to
non-scalar type `CGAL::Lazy_exact_nt<CGAL::Gmpq>' requested
/home/TZi/CGAL-3.3/include/CGAL/number_utils.h: In function `typename
CGAL::Algebraic_structure_traits<Type_>::Sqrt::result_type CGAL::sqrt(const
AS&) [with AS = dbl]':
src/IntersectionTools_3.cpp:422: instantiated from here
/home/TZi/CGAL-3.3/include/CGAL/number_utils.h:90: error: no match for call
to `(CGAL::Null_functor) (const CGAL::Lazy_exact_nt<CGAL::Gmpq>&)'
make: *** [src/IntersectionTools_3.o] Error 1
Any ideas? Thanks :-)
Best regards,
--
----------------------------------------------------------------
,yours Thomas Zangl, Bakk.rer.soc.oec. -
-
- Freelancer - IT Consulting & Software Development -
- Student of Software Development-Economy (Master) -
- Using CGAL::sqrt and CGAL::Gmpq?, Thomas Zangl - Home, 08/07/2007
- Re: [cgal-discuss] Using CGAL::sqrt and CGAL::Gmpq?, Laurent Rineau, 08/07/2007
- Re:[cgal-discuss] Using CGAL::sqrt and CGAL::Gmpq?, Thomas Zangl - Home, 08/07/2007
- Re: [cgal-discuss] Using CGAL::sqrt and CGAL::Gmpq?, Laurent Rineau, 08/07/2007
- Re:[cgal-discuss] Using CGAL::sqrt and CGAL::Gmpq?, Thomas Zangl - Home, 08/07/2007
- Re: [cgal-discuss] Using CGAL::sqrt and CGAL::Gmpq?, Laurent Rineau, 08/07/2007
Archive powered by MHonArc 2.6.16.