summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorfche <fche>2006-11-08 17:51:32 +0000
committerfche <fche>2006-11-08 17:51:32 +0000
commit72dbc9153036800cefdb5f2970666acc82cdb732 (patch)
treec9cb188d1c502a37a9089909e92d1194694a7792 /elaborate.cxx
parentf8399ba29877a2529d4f841f775382345095e2d3 (diff)
downloadsystemtap-steved-72dbc9153036800cefdb5f2970666acc82cdb732.tar.gz
systemtap-steved-72dbc9153036800cefdb5f2970666acc82cdb732.tar.xz
systemtap-steved-72dbc9153036800cefdb5f2970666acc82cdb732.zip
2006-11-08 Frank Ch. Eigler <fche@elastic.org>
* 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.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx12
1 files changed, 1 insertions, 11 deletions
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 <sys/utsname.h>
@@ -30,17 +31,6 @@ extern "C" {
using namespace std;
-template <typename OUT, typename IN> inline OUT
-lex_cast(IN const & in)
-{
- stringstream ss;
- OUT out;
- if (!(ss << in && ss >> out))
- throw runtime_error("bad lexical cast");
- return out;
-}
-
-
// ------------------------------------------------------------------------