Skip to content

Commit 362ecc2

Browse files
authored
Merge pull request #4825 from georgthegreat/patch-2
Fix -Wdeprecated-copy from c++11
2 parents ab6c168 + ed910d6 commit 362ecc2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/fstext/lattice-weight.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,9 @@ class CompactLatticeWeightTpl {
438438
CompactLatticeWeightTpl(const WeightType &w, const std::vector<IntType> &s):
439439
weight_(w), string_(s) { }
440440

441-
CompactLatticeWeightTpl &operator=(const CompactLatticeWeightTpl<WeightType, IntType> &w) {
442-
weight_ = w.weight_;
443-
string_ = w.string_;
444-
return *this;
445-
}
441+
CompactLatticeWeightTpl(const CompactLatticeWeightTpl &compactLatticeWeightTpl) = default;
442+
443+
CompactLatticeWeightTpl &operator=(const CompactLatticeWeightTpl &w) = default;
446444

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

0 commit comments

Comments
 (0)