Function

CGAL::enum_cast

#include <CGAL/enum.h>

template < typename T, typename U >
T enum_cast ( U u) converts between the various enums provided by the Cgal kernel. The conversion preserves the order of the values.

See Also

CGAL::Sign
CGAL::Comparison_result
CGAL::Orientation
CGAL::Oriented_side
CGAL::Bounded_side
CGAL::Angle
CGAL::Uncertain<T>