From a7da782db1fda2dade2bf104066ae4cf0a9aec48 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 23 Aug 2006 12:25:17 +0000 Subject: [PATCH] Drop the commented out old conversion functions --- source/value.cpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/source/value.cpp b/source/value.cpp index 8cb1af0..6d5e032 100644 --- a/source/value.cpp +++ b/source/value.cpp @@ -4,47 +4,11 @@ Copyright © 2006 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ #include -#include #include "value.h" namespace Msp { namespace Parser { -/*template<> -unsigned Value::get() const -{ - if(type!=INTEGER) - throw TypeError("Value is not an integer"); - errno=0; - unsigned long result=strtoul(data); - if(errno==ERANGE - return result; -} - -template<> -unsigned Value::get() const -{ - if(type!=INTEGER) - throw TypeError("Value is not an integer"); - return strtoul(data); -} - -template<> -unsigned Value::get() const -{ - if(type!=INTEGER) - throw TypeError("Value is not an integer"); - return strtoul(data); -} - -template<> -float Value::get() const -{ - if(type!=FLOAT && type!=INTEGER) - throw TypeError("Value is not a float"); - return strtod(data); -}*/ - template<> std::string Value::get() const { -- 2.43.0