Merge branch 'releases/CGAL-5.0-branch'

This commit is contained in:
Laurent Rineau 2020-07-21 15:27:49 +02:00
commit 022b1a71d0
7 changed files with 27 additions and 5 deletions

View File

@ -171,9 +171,11 @@ class AABB_tree;
/// \sa `AABBPrimitiveWithSharedData` /// \sa `AABBPrimitiveWithSharedData`
template<typename GeomTraits, typename AABBPrimitive, typename BboxMap = Default> template<typename GeomTraits, typename AABBPrimitive, typename BboxMap = Default>
class AABB_traits: class AABB_traits
public internal::AABB_tree::AABB_traits_base<AABBPrimitive>, #ifndef DOXYGEN_RUNNING
: public internal::AABB_tree::AABB_traits_base<AABBPrimitive>,
public internal::AABB_tree::AABB_traits_base_2<GeomTraits> public internal::AABB_tree::AABB_traits_base_2<GeomTraits>
#endif
{ {
typedef typename CGAL::Object Object; typedef typename CGAL::Object Object;
public: public:

View File

@ -16,6 +16,9 @@ if(NOT POLICY CMP0064)
# Add a fake function to avoid CMake errors # Add a fake function to avoid CMake errors
function(cgal_add_compilation_test) function(cgal_add_compilation_test)
endfunction() endfunction()
# Add a fake function to avoid CMake errors
function(cgal_setup_test_properties)
endfunction()
# Then return, to exit the file # Then return, to exit the file
return() return()
@ -213,7 +216,7 @@ function(cgal_setup_test_properties test_name)
PROPERTY PROPERTY
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/__exec_test_dir) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/__exec_test_dir)
endif() endif()
set_property(TEST "${test_name}" set_property(TEST "${test_name}"
APPEND PROPERTY FIXTURES_REQUIRED "${PROJECT_NAME}") APPEND PROPERTY FIXTURES_REQUIRED "${PROJECT_NAME}")
if(exe_name) if(exe_name)

View File

@ -564,7 +564,7 @@ using std::max;
#define CGAL_NORETURN [[noreturn]] #define CGAL_NORETURN [[noreturn]]
// Macro to specify [[no_unique_address]] if supported // Macro to specify [[no_unique_address]] if supported
#if __has_cpp_attribute(no_unique_address) #if CGAL_CXX11 && __has_cpp_attribute(no_unique_address)
# define CGAL_NO_UNIQUE_ADDRESS [[no_unique_address]] # define CGAL_NO_UNIQUE_ADDRESS [[no_unique_address]]
#else #else
# define CGAL_NO_UNIQUE_ADDRESS # define CGAL_NO_UNIQUE_ADDRESS

View File

@ -113,6 +113,7 @@ template <class Circulator>
class Construct_circulator_2 class Construct_circulator_2
{ {
public: public:
typedef Circulator result_type;
Circulator operator()(Circulator p1) const { return p1; } Circulator operator()(Circulator p1) const { return p1; }
}; };

View File

@ -40,6 +40,14 @@ public:
using Base::operator(); using Base::operator();
template<typename F>
struct result : Base::template result<F> {};
template<typename F>
struct result<F(Point_3)> {
typedef const Point_3& type;
};
const Point_3& operator()(const Point_3& p) const { return p; } const Point_3& operator()(const Point_3& p) const { return p; }
}; };

View File

@ -49,6 +49,14 @@ public:
using Base::operator(); // for K::Weighted_point_3 to Point_3 using Base::operator(); // for K::Weighted_point_3 to Point_3
template<typename F>
struct result : Base::template result<F> {};
template<typename F>
struct result<F(Weighted_point_3)> {
typedef Point_3 type;
};
Point_3 operator()(const Weighted_point_3& wp) const { Point_3 operator()(const Weighted_point_3& wp) const {
return std::make_pair(operator()(wp.first), wp.second /* offset */); return std::make_pair(operator()(wp.first), wp.second /* offset */);
} }

View File

@ -567,7 +567,7 @@ protected:
public: public:
template<typename P> // Point or Point_3 template<typename P> // Point or Point_3
typename boost::result_of<const Construct_point_3(const P&)>::type typename boost::result_of<Construct_point_3(P)>::type
construct_point(const P& p) const construct_point(const P& p) const
{ {
return geom_traits().construct_point_3_object()(p); return geom_traits().construct_point_3_object()(p);