We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab6c168 + ed910d6 commit 362ecc2Copy full SHA for 362ecc2
src/fstext/lattice-weight.h
@@ -438,11 +438,9 @@ class CompactLatticeWeightTpl {
438
CompactLatticeWeightTpl(const WeightType &w, const std::vector<IntType> &s):
439
weight_(w), string_(s) { }
440
441
- CompactLatticeWeightTpl &operator=(const CompactLatticeWeightTpl<WeightType, IntType> &w) {
442
- weight_ = w.weight_;
443
- string_ = w.string_;
444
- return *this;
445
- }
+ CompactLatticeWeightTpl(const CompactLatticeWeightTpl &compactLatticeWeightTpl) = default;
+
+ CompactLatticeWeightTpl &operator=(const CompactLatticeWeightTpl &w) = default;
446
447
const W &Weight() const { return weight_; }
448
0 commit comments