[Lemon-commits] [lemon_svn] klao: r1383 - in hugo/trunk/src/lemon: . attic
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:45:00 CET 2006
Author: klao
Date: Mon Nov 15 14:10:35 2004
New Revision: 1383
Added:
hugo/trunk/src/lemon/error.h
- copied, changed from r1382, /hugo/trunk/src/lemon/attic/error.h
Removed:
hugo/trunk/src/lemon/attic/error.h
Log:
error.h brought back to life
Copied: hugo/trunk/src/lemon/error.h (from r1382, /hugo/trunk/src/lemon/attic/error.h)
==============================================================================
--- /hugo/trunk/src/lemon/attic/error.h (original)
+++ hugo/trunk/src/lemon/error.h Mon Nov 15 14:10:35 2004
@@ -52,9 +52,8 @@
return buf.str().c_str();
}
- Exception& operator<<(std::string const& s) { buf << s; return *this; }
- Exception& operator<<(char const *s) { buf << s; return *this; }
- Exception& operator<<(int i) { buf << i; return *this; }
+ template <typename T>
+ Exception& operator<<(T const& t) { buf << t; return *this; }
};
/**
@@ -75,7 +74,7 @@
# define FIXME(msg) \
do { throw ::lemon::Exception() << "FIXME: " msg " (in: " \
- __FILE__ ", " << __LINE__ << ")"; \
+ __FILE__ ", " << __LINE__ << ")"; \
} while(false)
}
More information about the Lemon-commits
mailing list