8331352: error: template-id not allowed for constructor/destructor in C++20

Reviewed-by: kbarrett, stefank
This commit is contained in:
Jan Kratochvil 2024-05-10 12:16:47 +00:00 committed by Yuri Nesterenko
parent 1547a69651
commit 45792c5829
4 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ ZActivatedArray<T>::ZActivatedArray(bool locked)
_array() {}
template <typename T>
ZActivatedArray<T>::~ZActivatedArray<T>() {
ZActivatedArray<T>::~ZActivatedArray() {
FreeHeap(_lock);
}

View File

@ -44,7 +44,7 @@ template <class T, MEMFLAGS F> class ChunkedList : public CHeapObj<F> {
}
public:
ChunkedList<T, F>() : _top(_values), _next_used(nullptr), _next_free(nullptr) {}
ChunkedList() : _top(_values), _next_used(nullptr), _next_free(nullptr) {}
bool is_full() const {
return _top == end();

View File

@ -99,7 +99,7 @@ template <class T> class EventLogBase : public EventLog {
EventRecord<T>* _records;
public:
EventLogBase<T>(const char* name, const char* handle, int length = LogEventsBufferEntries):
EventLogBase(const char* name, const char* handle, int length = LogEventsBufferEntries):
_mutex(Mutex::event, name),
_name(name),
_handle(handle),

View File

@ -82,7 +82,7 @@ template <class E> class LinkedListNode : public AnyObj {
template <class E> class LinkedList : public AnyObj {
protected:
LinkedListNode<E>* _head;
NONCOPYABLE(LinkedList<E>);
NONCOPYABLE(LinkedList);
public:
LinkedList() : _head(nullptr) { }