mirror of https://github.com/CGAL/cgal
Added a parameter pack to the constructor and passed it to the underlying traits; disabled copy constructor.
This commit is contained in:
parent
22d35af320
commit
eff6474fcf
|
|
@ -85,18 +85,17 @@ public:
|
|||
typedef Arr_counting_traits_2<Base> Self;
|
||||
|
||||
/*! Construct default */
|
||||
Arr_counting_traits_2() : Base()
|
||||
template<typename ... Args>
|
||||
Arr_counting_traits_2(Args ... args) :
|
||||
Base(args...)
|
||||
{
|
||||
clear_counters();
|
||||
increment();
|
||||
}
|
||||
|
||||
/*! Construct copy */
|
||||
Arr_counting_traits_2(const Arr_counting_traits_2& other) : Base(other)
|
||||
{
|
||||
clear_counters();
|
||||
increment();
|
||||
}
|
||||
/*! Disable copy constructor.
|
||||
*/
|
||||
Arr_counting_traits_2(const Arr_counting_traits_2&) = delete;
|
||||
|
||||
/*! Obtain the counter of the given operation */
|
||||
size_t count(Operation_id id) const
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ private:
|
|||
{ return m_flags & (0x1 << COMPARE_X_NEAR_BOUNDARY_OP); }
|
||||
|
||||
public:
|
||||
/*! Default constructor */
|
||||
/*! Construct default */
|
||||
template<typename ... Args>
|
||||
Arr_tracing_traits_2(Args ... args) :
|
||||
Base(args...)
|
||||
|
|
@ -170,6 +170,10 @@ public:
|
|||
enable_all_traces();
|
||||
}
|
||||
|
||||
/*! Disable copy constructor.
|
||||
*/
|
||||
Arr_tracing_traits_2(const Arr_tracing_traits_2&) = delete;
|
||||
|
||||
/*! Enable the trace of a traits operation
|
||||
* \param id the operation identifier
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue