Opened 17 years ago
Last modified 15 years ago
#37 assigned enhancement
operator= for RangeMap and SparseMap
Reported by: | Peter Kovacs | Owned by: | Peter Kovacs |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | hg main |
Keywords: | Cc: | Balazs Dezso | |
Revision id: |
Description
Now operator=
function is private (without implementation) in RangeMap
and SparseMap
classes. Do we need public operator=
?
Change History (10)
comment:1 follow-up: 2 Changed 17 years ago by
Cc: | Balazs Dezso added |
---|
comment:2 Changed 17 years ago by
Replying to alpar:
Generally, maps are not assignable. Should
RangeMap
andSparseMap
be exceptions?
According to the map concepts a map class needn't be assignable (e.g. maps created with map adaptors are usually not assignable).
However the basic maps except for RangeMap
and SparseMap
(NullMap
, ConstMap
, IdentityMap
) are assignable, see test/maps_test.cc. So RangeMap
and SparseMap
would not be exceptions and operator=
would be a useful feature for them.
comment:3 Changed 17 years ago by
Owner: | changed from Alpar Juttner to Peter Kovacs |
---|
comment:4 Changed 17 years ago by
Status: | new → assigned |
---|
comment:5 Changed 17 years ago by
What is your opinion? Should the basic map classes (not Adaptors!) be assignable?
comment:6 Changed 17 years ago by
Milestone: | LEMON 1.0 release → Post 1.0 |
---|
comment:7 Changed 17 years ago by
Version: | → hg main |
---|
comment:9 Changed 16 years ago by
Milestone: | LEMON 1.1 release → LEMON 1.2 release |
---|
The deadline for release 1.1 is rapidly approaching and we still have a couple of more important things to do till then. Thus I postpone this ticket.
comment:10 Changed 15 years ago by
Milestone: | LEMON 1.2 release |
---|
Replying to kpeter:
Generally, maps are not assignable. Should
RangeMap
andSparseMap
be exceptions?