Opened 14 years ago
Closed 14 years ago
#467 closed request (fixed)
disable implicit conversion between Vector and its View siblings
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | critical | Milestone: | yat 0.5 |
Component: | utility | Version: | trunk |
Keywords: | Cc: |
Description
implicit conversion is dangerous and should be avoided. This was unfortunately allowed in yat 0.4 but should be removed. As the change will break with 0.4, it must be documented in NEWS.
Change History (3)
comment:1 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 14 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I think we should allow implicit conversion from VectorView? to VectorConstView?. It corresponds to normal const conversion. With Vector it is a different story because ownership is different in Vector and its views.
Conversion from a temporary VectorView? will probably be a bit tricky. See how the proxy class is used in VectorView?.
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.
(In [1651]) fixes #467 - implicit conversion between Vector and its Views are no longer allowed