Skip to content

Commit

Permalink
- ThreadPoolクラスがvector<Thread*>から派生しなくなって、Threads[n]という書き方がコンパイルエラーにな…
Browse files Browse the repository at this point in the history
…っていたのを修正。

  - EVAL_LEARN版のビルドでこけてたのはこれが原因。
  • Loading branch information
yaneurao committed Oct 15, 2023
1 parent 07e7bcc commit b0b0184
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ struct ThreadPool
// すべて終了していればtrueが返る。
bool search_finished() const;

// thread_pool[n]のようにでアクセスしたいので…。
Thread* operator[](size_t n) { return threads[n];}

private:

// 現局面までのStateInfoのlist
Expand Down

0 comments on commit b0b0184

Please sign in to comment.