intrusive_ptrフィールドを含む構造体があります。
struct BranchFeedback : boost::counted_base {
...
boost::intrusive_ptr<BPredState> theBPState;
};
次のように定義されている別のvaribaleがあります
std::vector< std::vector< BPredState > > theFetchState;
これで、オブジェクトがインスタンス化されました
BranchFeedback theFeedback;
そして、そのフィールドにFetchStateを割り当てたい
theFeedback.theBPState = theFetchState[anIndex][!anOne];
しかし、コンパイラはいくつかのエラーを言います
error: no match for ‘operator=’ in theFeedback.theBPState = .....
どうすれば修正できますか?