Skip to content

Commit

Permalink
Merge pull request CGAL#8257 from gdamiand/LCC-bugfix-gdamiand
Browse files Browse the repository at this point in the history
Bug fix: definition of Self and Base in class Cell_attribute_with_point when using index.
  • Loading branch information
sloriot committed Jun 5, 2024
2 parents c36ede0 + e4140c2 commit 67d4e4a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace CGAL {
struct Container_for_attributes : public
Compact_container_with_index<T,
typename Allocator_traits::template rebind_alloc<T>,
Multiply_by_two_policy_for_cc_with_size<64>, size_type >
Multiply_by_two_policy_for_cc_with_size<64>, Index_type >
{};
/// Typedef for attributes
typedef typename internal::template Get_attributes_tuple<Dart_wrapper>::type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace CGAL {
struct Container_for_attributes : public
Compact_container_with_index<T,
typename Allocator_traits::template rebind_alloc<T>,
Multiply_by_two_policy_for_cc_with_size<64>, size_type >
Multiply_by_two_policy_for_cc_with_size<64>, Index_type >
{};
/// Typedef for attributes
typedef typename internal::template Get_attributes_tuple<Dart_wrapper>::type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace CGAL {
struct Container_for_attributes : public
Compact_container_with_index<T,
typename Allocator_traits::template rebind_alloc<T>,
Multiply_by_two_policy_for_cc_with_size<64>, size_type >
Multiply_by_two_policy_for_cc_with_size<64>, Index_type >
{};
/// Typedef for attributes
typedef typename internal::template Get_attributes_tuple<Dart_wrapper>::type
Expand Down
4 changes: 2 additions & 2 deletions Linear_cell_complex/include/CGAL/Cell_attribute_with_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ namespace CGAL {

public:
typedef Cell_attribute_with_point<LCC, Info_, Tag, Functor_on_merge_,
Functor_on_split_> Self;
Functor_on_split_, WithID> Self;

typedef Cell_attribute<LCC, Info_, Tag,
Functor_on_merge_, Functor_on_split_> Base1;
Functor_on_merge_, Functor_on_split_, WithID> Base1;
typedef Point_for_cell<typename LCC::Point> Base2;

typedef typename LCC::Point Point;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ namespace CGAL {
template <class, class>
friend class Concurrent_compact_container;

template <class, class, class, class>
friend class Compact_container_with_index;

public:
typedef typename Base::Point Point;

Expand Down Expand Up @@ -64,6 +67,9 @@ namespace CGAL {
template <class, class>
friend class Concurrent_compact_container;

template <class, class, class, class>
friend class Compact_container_with_index;

public:
typedef typename Base::Point Point;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace CGAL {
struct Container_for_attributes : public
Compact_container_with_index<T,
typename Allocator_traits::template rebind_alloc<T>,
Multiply_by_two_policy_for_cc_with_size<64>, size_type >
Multiply_by_two_policy_for_cc_with_size<64>, Index_type >
{};
/// Typedef for attributes
typedef typename internal::template Get_attributes_tuple<Dart_wrapper>::type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ struct Myitems_2b
{
#ifdef USE_COMPACT_CONTAINER_WITH_INDEX
typedef CGAL::Tag_true Use_index;
using Index_type=std::uint16_t;
#endif
template <class LCC>
struct Dart_wrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ struct Myitems_3b
{
#ifdef USE_COMPACT_CONTAINER_WITH_INDEX
typedef CGAL::Tag_true Use_index;
using Index_type=std::uint32_t;
#endif
template <class LCC>
struct Dart_wrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ struct Myitems_4b
{
#ifdef USE_COMPACT_CONTAINER_WITH_INDEX
typedef CGAL::Tag_true Use_index;
using Index_type=std::uint64_t;
#endif
template <class LCC>
struct Dart_wrapper
Expand Down

0 comments on commit 67d4e4a

Please sign in to comment.