Visual Studio Code – C++ How to define the spaceship operator for a template class?
Im trying to define the spaceship operator for a simple template string class. namespace mylib { template <size_t N> struct String { String() { *data = ''; } String(const char *str) { size_t l = strlen(str); if (l >= N)…