Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10762: fixed_matrix &operator = (matrix m) wrong parameter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-06 14:53:36
#10762: fixed_matrix &operator = (matrix m) wrong parameter
-------------------------------+---------------------
Reporter: anonymous | Owner: dgregor
Type: Bugs | Status: new
Milestone: To Be Determined | Component: numeric
Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------
Comment (by James Benze):
Problem is fixed by changing
{{{
fixed_matrix & operator=(matrix m)
}}}
to
{{{
fixed_matrix & operator=(fixed_matrix m)
}}}
Although based on the comment that this is supposed to be a move-
assignment operator, the author probably really wants
{{{
fixed_matrix & operator=(fixed_matrix && m)
}}}
Otherwise...well I'm not sure how that would overload with the copy-
assignment operator. Probably not nicely.
Gimmie a few minutes and I'll generate up a patch.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10762#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC