Browse Source

AP_Common: class template parameters not compliant in constructor declaration

apm_2208
François Carouge 3 years ago committed by Andrew Tridgell
parent
commit
772c80a038
  1. 4
      libraries/AP_Common/AP_ExpandingArray.h

4
libraries/AP_Common/AP_ExpandingArray.h

@ -83,12 +83,12 @@ class AP_ExpandingArray : public AP_ExpandingArrayGeneric
{ {
public: public:
AP_ExpandingArray<T>(uint16_t elements_per_chunk) : AP_ExpandingArray(uint16_t elements_per_chunk) :
AP_ExpandingArrayGeneric(sizeof(T), elements_per_chunk) AP_ExpandingArrayGeneric(sizeof(T), elements_per_chunk)
{} {}
/* Do not allow copies */ /* Do not allow copies */
AP_ExpandingArray<T>(const AP_ExpandingArray<T> &other) = delete; AP_ExpandingArray(const AP_ExpandingArray<T> &other) = delete;
AP_ExpandingArray<T> &operator=(const AP_ExpandingArray<T>&) = delete; AP_ExpandingArray<T> &operator=(const AP_ExpandingArray<T>&) = delete;
// allow use as an array for assigning to elements. no bounds checking is performed // allow use as an array for assigning to elements. no bounds checking is performed

Loading…
Cancel
Save