AP_Common: class template parameters not compliant in constructor declaration

This commit is contained in:
François Carouge 2022-06-26 20:56:04 -07:00 committed by Andrew Tridgell
parent 2228f1407d
commit 772c80a038
1 changed files with 2 additions and 2 deletions

View File

@ -83,12 +83,12 @@ class AP_ExpandingArray : public AP_ExpandingArrayGeneric
{
public:
AP_ExpandingArray<T>(uint16_t elements_per_chunk) :
AP_ExpandingArray(uint16_t elements_per_chunk) :
AP_ExpandingArrayGeneric(sizeof(T), elements_per_chunk)
{}
/* 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;
// allow use as an array for assigning to elements. no bounds checking is performed