Changeset 703:32f280a5ed7d in lemon-0.x for src/work/deba/map_defines.h
- Timestamp:
- 07/15/04 14:15:58 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@954
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/deba/map_defines.h
r701 r703 54 54 NodeMap(const Graph& g) : Factory::Map<V>(&g, &(g.node_maps)) {} \ 55 55 NodeMap(const Graph& g, const V& v) : Factory::Map<V>(g, g.node_maps, v) {} \ 56 NodeMap(const NodeMap& copy) : Factory::Map<V>(copy) {} \ 56 NodeMap(const NodeMap& copy) \ 57 : Factory::Map<V>(static_cast<const Factory::Map<V>&>(copy)) {} \ 57 58 template <typename CMap> NodeMap(const CMap& copy) : Factory::Map<V>(copy) {} \ 58 59 NodeMap& operator=(const NodeMap& copy) { \ 59 this->Factory::Map<V>::operator=( copy); \60 this->Factory::Map<V>::operator=(static_cast<Factory::Map<V>&>(copy)); \ 60 61 return *this; \ 61 62 } \ … … 79 80 EdgeMap(const Graph& g) : Factory::Map<V>(g, g.edge_maps) {} \ 80 81 EdgeMap(const Graph& g, const V& v) : Factory::Map<V>(g, g.node_maps, v) {} \ 81 EdgeMap(const EdgeMap& copy) : Factory::Map<V>(copy) {} \ 82 EdgeMap(const EdgeMap& copy) \ 83 : Factory::Map<V>(static_cast<Factory::Map<V>&>(copy)) {} \ 82 84 template <typename CMap> EdgeMap(const CMap& copy) : Factory::Map<V>(copy) {} \ 83 85 EdgeMap& operator=(const EdgeMap& copy) { \ 84 this->Factory::Map<V>::operator=( copy); \86 this->Factory::Map<V>::operator=(static_cast<Factory::Map<V>&>(copy)); \ 85 87 return *this; \ 86 88 } \
Note: See TracChangeset
for help on using the changeset viewer.