COIN-OR::LEMON - Graph Library

Changeset 703:32f280a5ed7d in lemon-0.x for src/work/deba/map_defines.h


Ignore:
Timestamp:
07/15/04 14:15:58 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@954
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/deba/map_defines.h

    r701 r703  
    5454NodeMap(const Graph& g) : Factory::Map<V>(&g, &(g.node_maps)) {} \
    5555NodeMap(const Graph& g, const V& v) : Factory::Map<V>(g, g.node_maps, v) {} \
    56 NodeMap(const NodeMap& copy) : Factory::Map<V>(copy) {} \
     56NodeMap(const NodeMap& copy) \
     57  : Factory::Map<V>(static_cast<const Factory::Map<V>&>(copy)) {} \
    5758template <typename CMap> NodeMap(const CMap& copy) : Factory::Map<V>(copy) {} \
    5859NodeMap& operator=(const NodeMap& copy) { \
    59   this->Factory::Map<V>::operator=(copy); \
     60  this->Factory::Map<V>::operator=(static_cast<Factory::Map<V>&>(copy)); \
    6061  return *this; \
    6162} \
     
    7980EdgeMap(const Graph& g) : Factory::Map<V>(g, g.edge_maps) {} \
    8081EdgeMap(const Graph& g, const V& v) : Factory::Map<V>(g, g.node_maps, v) {} \
    81 EdgeMap(const EdgeMap& copy) : Factory::Map<V>(copy) {} \
     82EdgeMap(const EdgeMap& copy) \
     83  : Factory::Map<V>(static_cast<Factory::Map<V>&>(copy)) {} \
    8284template <typename CMap> EdgeMap(const CMap& copy) : Factory::Map<V>(copy) {} \
    8385EdgeMap& operator=(const EdgeMap& copy) { \
    84   this->Factory::Map<V>::operator=(copy); \
     86  this->Factory::Map<V>::operator=(static_cast<Factory::Map<V>&>(copy)); \
    8587  return *this; \
    8688} \
Note: See TracChangeset for help on using the changeset viewer.