Skip to content

Commit e56d675

Browse files
authored
Update Workflow.h
1 parent 29a1186 commit e56d675

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/factory/Workflow.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ class ParallelWork : public ParallelTask
258258
size_t size() const { return this->subtasks_nr; }
259259

260260
public:
261-
SeriesWork *begin() { return this->series_at(0); }
262-
SeriesWork *end() { return this->all_series + this->subtasks_nr;}
261+
SeriesWork **begin() { return this->all_series; }
262+
SeriesWork **end() { return this->all_series + this->subtasks_nr; }
263263

264-
const SeriesWork *begin() const { return this->series_at(0);}
265-
const SeriesWork *end() const { return this->all_series + this->subtasks_nr;}
264+
const SeriesWork **begin() const { return this->all_series; }
265+
const SeriesWork **end() const { return this->all_series + this->subtasks_nr; }
266266

267267
public:
268268
void set_callback(parallel_callback_t callback)

0 commit comments

Comments
 (0)