Завершить вызов после создания экземпляра 'std::system_errorC++

Программы на C++. Форум разработчиков
Anonymous
Завершить вызов после создания экземпляра 'std::system_error

Сообщение Anonymous »

У меня возникла проблема с потоками:
Вот код, воспроизводящий ошибку:

Код: Выделить всё

using namespace std;

#include 
#include 
#include 
#include 
#include 
#include 

#include 
#include 
#include 
#include 

#include "mychrono.hpp"

int main()

{

std::vector car_crono;
Chronometer chrono, output_chrono;
std::vector threads;

while (1) {

for(int i = 0; i < 2; i++)
{
car_crono.push_back(new Chronometer);
}

for(int i = 0; i

Подробнее здесь: [url]https://stackoverflow.com/questions/68909406/terminate-called-after-throwing-an-instance-of-stdsystem-error[/url]

Вернуться в «C++»