Skip to content

Commit a7fcc2d

Browse files
committed
fix the non-compiling tests, thx to @csukuangfj
1 parent 57efb6b commit a7fcc2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/fstext/trivial-factor-weight.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,11 @@ class ArcIterator< TrivialFactorWeightFst<A, F> >
390390
template <class A, class F>
391391
inline void TrivialFactorWeightFst<A, F>::InitStateIterator(
392392
StateIteratorData<A> *data) const {
393+
#if OPENFST_VER >= 10803
394+
data->base.reset(new StateIterator< TrivialFactorWeightFst<A, F> >(*this));
395+
#else
393396
data->base = new StateIterator< TrivialFactorWeightFst<A, F> >(*this);
397+
#endif
394398
}
395399

396400

0 commit comments

Comments
 (0)