Skip to content

Commit 269eb82

Browse files
author
Reed A. Cartwright
committed
Patch OpenFST for compiling on newer compilers.
1 parent 332bed0 commit 269eb82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/fstlib/fst/fst.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,8 @@ class FstImpl {
691691
properties_.store(impl.properties_.load(std::memory_order_relaxed),
692692
std::memory_order_relaxed);
693693
type_ = impl.type_;
694-
isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
695-
osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr;
694+
isymbols_.reset(impl.isymbols_ ? impl.isymbols_->Copy() : nullptr);
695+
osymbols_.reset(impl.osymbols_ ? impl.osymbols_->Copy() : nullptr);
696696
return *this;
697697
}
698698

0 commit comments

Comments
 (0)