diff --git a/src/ccmain/paragraphs_internal.h b/src/ccmain/paragraphs_internal.h index a7c08d5110..558245af34 100644 --- a/src/ccmain/paragraphs_internal.h +++ b/src/ccmain/paragraphs_internal.h @@ -79,6 +79,13 @@ struct LineHypothesis { LineHypothesis(const LineHypothesis &other) : ty(other.ty), model(other.model) {} + // Copy assignment operator. + LineHypothesis& operator=(const LineHypothesis& other) { + ty = other.ty; + model = other.model; + return *this; + } + bool operator==(const LineHypothesis &other) const { return ty == other.ty && model == other.model; }