Optimize memory in operators overload and template structures
The task:
In this task you have to write a structure that will work both like a regular array in C and like a list in Python. Namely, write a structure
Why can’t my C++ code finish compiling in g++ 9.4, but other versions do
I tested the code in linux g++ (GCC) 8.2.0, g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, and all of them can be compiled, but it fails to compile in g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0. Does anyone know why? I have a feeling that there are no errors in this code: