COIN-OR::LEMON - Graph Library

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 in reply to:  description ; Changed 17 years ago by Alpar Juttner

Cc: Balazs Dezso added

Replying to kpeter:

Now operator= function is private (without implementation) in RangeMap and SparseMap classes. Do we need public operator=?

Generally, maps are not assignable. Should RangeMap and SparseMap be exceptions?

comment:2 in reply to:  1 Changed 17 years ago by Peter Kovacs

Replying to alpar:

Generally, maps are not assignable. Should RangeMap and SparseMap 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 Alpar Juttner

Owner: changed from Alpar Juttner to Peter Kovacs

comment:4 Changed 17 years ago by Peter Kovacs

Status: newassigned

comment:5 Changed 17 years ago by Peter Kovacs

What is your opinion? Should the basic map classes (not Adaptors!) be assignable?

comment:6 Changed 17 years ago by Alpar Juttner

Milestone: LEMON 1.0 releasePost 1.0

comment:7 Changed 17 years ago by Alpar Juttner

Version: hg main

comment:8 Changed 16 years ago by Peter Kovacs

This question is related to #137 and #146.

comment:9 Changed 16 years ago by Alpar Juttner

Milestone: LEMON 1.1 releaseLEMON 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 Peter Kovacs

Milestone: LEMON 1.2 release
Note: See TracTickets for help on using tickets.