Category : c++11

In C++11 I have a problematic line, when it’s commented my programs runs perfect. when I uncomment it it causes tons of errors. My line is: jobs.insert(std::lower_bound(jobs.begin(), jobs.end(), job), job); In the following function: void JobsList::addJob(Command *cmd, bool isStopped) { JobEntry tmp{}; = 0; //getLastJob(&tmp.jid); ++tmp.jid; tmp.stopped = isStopped; tmp.cmd = cmd->cmd; time(&tmp.in_time); for ..

Read more