У меня есть большой проект, над которым я работаю, и он продолжает давать мне сообщение об ошибке C3889 Call к объекту класса тип 'std :: eval_to' not socking call Operator (я использую Visual Studio Code 2022)
Вот mre < /p>
У меня есть большой проект, над которым я работаю, и он продолжает давать мне сообщение об ошибке C3889 Call к объекту класса тип 'std :: eval_to' not socking call Operator (я использую Visual Studio Code 2022) Вот mre < /p> [code]#include #include template bool isin(T i, const std::vector& vec) { for (const T& t : vec) { if (i == t) return true; } return false; } template std::vector GetAllUniqueCombos(const std::vector& arr) { std::vector n; for (int i = 0; i < arr.size(); ++i) { for (int j = i + 1; j < arr.size(); ++j) { if (!isin({ arr[i], arr[j] }, n))n.push_back({ arr[i], arr[j] }); } } return n; } struct Spot { int x, y; }; void DrawTriangle(Spot s1, Spot s2, Spot s3, int color); void DrawPolygon(const std::vector& points, int color) { if (points.size() < 3) return; std::vector a; for (int j = 1; j < points.size(); j++) { a.push_back(points[j]); } for (auto i : GetAllUniqueCombos(a)) { DrawTriangle(points[0], i[0], i[1], color); } } int main() { std::vector t = { 1, 2, 3, 4 }; for (auto i : GetAllUniqueCombos(t)) { for (auto j : i) { std::cout