Skip to content

Commit

Permalink
Merge pull request #4825 from georgthegreat/patch-2
Browse files Browse the repository at this point in the history
Fix -Wdeprecated-copy from c++11
  • Loading branch information
danpovey committed Feb 18, 2023
2 parents ab6c168 + ed910d6 commit 362ecc2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/fstext/lattice-weight.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,9 @@ class CompactLatticeWeightTpl {
CompactLatticeWeightTpl(const WeightType &w, const std::vector<IntType> &s):
weight_(w), string_(s) { }

CompactLatticeWeightTpl &operator=(const CompactLatticeWeightTpl<WeightType, IntType> &w) {
weight_ = w.weight_;
string_ = w.string_;
return *this;
}
CompactLatticeWeightTpl(const CompactLatticeWeightTpl &compactLatticeWeightTpl) = default;

CompactLatticeWeightTpl &operator=(const CompactLatticeWeightTpl &w) = default;

const W &Weight() const { return weight_; }

Expand Down

0 comments on commit 362ecc2

Please sign in to comment.