cgal icon indicating copy to clipboard operation
cgal copied to clipboard

How to use CGAL::root_of?

Open ShenCiao opened this issue 2 years ago • 1 comments

Issue Details

In the document, the root_of has signature: NT CGAL::root_of (int k, InputIterator begin, InputIterator end)

But in actual code the return type comes to typename Algebraic_structure_traits<typename std::iterator_traits<Input_iterator>::value_type >::Root_of::result_type:

template< class Input_iterator >
inline
typename Algebraic_structure_traits< typename std::iterator_traits<Input_iterator>::value_type >::Root_of::result_type
root_of( int k, Input_iterator begin, Input_iterator end )

Have I forgot about including or installing something or this function has already been deprecated?

Environment

  • Operating system (Windows 64 bits):
  • Compiler: MSVC
  • CGAL version: lastest with vcpkg (5.4.1)
  • Boost version: lastest with vcpkg

ShenCiao avatar Jul 23 '22 15:07 ShenCiao

But this result_type will resolve to NT, see for example https://github.com/CGAL/cgal/blob/master/Number_types/include/CGAL/Lazy_exact_nt.h#L842. Are you getting some compilation error?

MaelRL avatar Jul 26 '22 08:07 MaelRL