Код: Выделить всё
#include
#include
#include
template
class TestClass {
std::vector children;
public:
using iterator = typename std::vector::iterator;
std::ranges::subrange getChildren();
};
int main() {
TestClass obj;
return 0;
}
template
std::ranges::subrange TestClass::getChildren() {
/* ... */
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... mpiler-err