From 72dbc9153036800cefdb5f2970666acc82cdb732 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 8 Nov 2006 17:51:32 +0000 Subject: 2006-11-08 Frank Ch. Eigler * util.h (lex_cast_qstring): Move def'n here. Also quote \. (stringify, lex_cast, lex_cast_hex): Move defn here. * buildrun.cxx, elaborate.cxx, main.cxx, staptree.cxx: Adapt. --- elaborate.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'elaborate.cxx') diff --git a/elaborate.cxx b/elaborate.cxx index c532d0b0..06ddaf36 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -11,6 +11,7 @@ #include "parse.h" #include "tapsets.h" #include "session.h" +#include "util.h" extern "C" { #include @@ -30,17 +31,6 @@ extern "C" { using namespace std; -template inline OUT -lex_cast(IN const & in) -{ - stringstream ss; - OUT out; - if (!(ss << in && ss >> out)) - throw runtime_error("bad lexical cast"); - return out; -} - - // ------------------------------------------------------------------------ -- cgit