|
@@ -2,6 +2,9 @@
|
|
|
#include <iostream>
|
|
|
#include <vector>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
struct A {
|
|
|
static int instances;
|
|
|
int a;
|
|
@@ -59,6 +62,7 @@ public:
|
|
|
for(int i = 0; i < elements; i++) {
|
|
|
data[i].~T();
|
|
|
}
|
|
|
+
|
|
|
delete[] reinterpret_cast<char*>(data);
|
|
|
}
|
|
|
|
|
@@ -233,6 +237,8 @@ void printError(int number) {
|
|
|
std::cout << "\033[0;31mError " << number << "\033[0m\n";
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
template<typename V>
|
|
|
void test() {
|
|
|
{
|