Skip to content

Commit

Permalink
fix the non-compiling tests, thx to @csukuangfj
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrmal committed Jul 25, 2024
1 parent 57efb6b commit a7fcc2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fstext/trivial-factor-weight.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,11 @@ class ArcIterator< TrivialFactorWeightFst<A, F> >
template <class A, class F>
inline void TrivialFactorWeightFst<A, F>::InitStateIterator(
StateIteratorData<A> *data) const {
#if OPENFST_VER >= 10803
data->base.reset(new StateIterator< TrivialFactorWeightFst<A, F> >(*this));
#else
data->base = new StateIterator< TrivialFactorWeightFst<A, F> >(*this);
#endif
}


Expand Down

0 comments on commit a7fcc2d

Please sign in to comment.