COIN-OR::LEMON - Graph Library

Changeset 993:21d1b4fa1b24 in lemon-0.x


Ignore:
Timestamp:
11/15/04 14:10:35 (16 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1383
Message:

error.h brought back to life

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/lemon/error.h

    r921 r993  
    5353    }
    5454
    55     Exception& operator<<(std::string const& s) { buf << s; return *this; }
    56     Exception& operator<<(char const *s) { buf << s; return *this; }
    57     Exception& operator<<(int i) { buf << i; return *this; }
     55    template <typename T>
     56    Exception& operator<<(T const& t) { buf << t; return *this; }
    5857  };
    5958
     
    7675# define FIXME(msg) \
    7776    do { throw ::lemon::Exception() << "FIXME: " msg " (in: "    \
    78       __FILE__ ", " << __LINE__ << ")";                         \
     77      __FILE__ ", " << __LINE__ << ")";                          \
    7978    } while(false)
    8079
Note: See TracChangeset for help on using the changeset viewer.