Opened 7 years ago

Closed 6 years ago

#840 closed defect (fixed)

assignment of VectorMutable does not compile

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.14
Component: utility Version: 0.12.2
Keywords: Cc:


The code below does not compile

void solve(VectorMutable& w, const Matrix& A, const Vector& x)
	w = A*x;

Change History (3)

comment:1 Changed 7 years ago by Peter

Both Vector and VectorView have assignment::operator(const VectorBase?&) but for their base class, VectorMutable, the operator is declared private.

comment:2 Changed 6 years ago by Peter

Milestone: yat 0.x+yat 0.14
Owner: changed from Jari Häkkinen to Peter
Status: newassigned

comment:3 Changed 6 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [3467]) add VectorMutable? assignment operator to the API (using already implemented assign function). Although VectorMutable? is not designed to be inherited from (except for Vector and VectorView?), it should be mention that a virtual pure function was introduced here, which likely will break classes inherited from VectorMutable?. fixes #840

Note: See TracTickets for help on using tickets.