Jonathan M Davis <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #6 from Jonathan M Davis <> 2012-02-09 14:24:46 
PST ---
I think that const auto ref does the trick, assuming that that works with
opCmp, but for some reason, it only works with templated functions at the
moment. I thought that it was supposed to work with non-templated functions as
well. If it doesn't, then I guess that the forced solution is to define an
overload which takes a const ref and one which takes the argument by value. It
would be much simpler if const ref could take a temporary, but Andrei is dead
set against that solution.

A related issue is the fact that


compiles while


does not, since (for reasons that I've never understood) a struct literal is
considered an lvalue: issue# 5889.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to