COIN-OR::LEMON - Graph Library

Changeset 1725:22752dd6c693 in lemon-0.x for lemon/maps.h


Ignore:
Timestamp:
10/14/05 13:00:40 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2252
Message:

Using proper return type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/maps.h

    r1705 r1725  
    1919
    2020#include <lemon/utility.h>
    21 
     21#include <lemon/traits.h>
    2222
    2323///\file
     
    522522    ///Constructor
    523523    ComposeMap(const M1 &_m1,const M2 &_m2) : m1(_m1), m2(_m2) {};
    524     Value operator[](Key k) const {return m1[m2[k]];}
     524   
     525    typename MapTraits<M1>::ConstReturnValue
     526    operator[](Key k) const {return m1[m2[k]];}
    525527  };
    526528  ///Returns a \ref ComposeMap class
Note: See TracChangeset for help on using the changeset viewer.