/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
public:
explicit FlexibleArray(const int capacity) {
if (capacity > 1) // the first item is initialized automatically
- new (items+1) Item[capacity-1];
+ new (raw()+1) Item[capacity-1];
}
Item &operator [](const int idx) { return items[idx]; }