diff options
author | Kazunori Fujiwara <fujiwara@wide.ad.jp> | 2013-07-08 04:43:54 +0200 |
---|---|---|
committer | Kazunori Fujiwara <fujiwara@wide.ad.jp> | 2013-07-08 04:43:54 +0200 |
commit | 0202fc5aeaa4e339d55c93eeaf83cdfaafda559a (patch) | |
tree | ceebe3e343380011667fcd16788d07dceec83b2f /src/lib/cc/data.h | |
parent | [3015] Type of IntElement is changed from long int to int64_t. (diff) | |
download | kea-0202fc5aeaa4e339d55c93eeaf83cdfaafda559a.tar.xz kea-0202fc5aeaa4e339d55c93eeaf83cdfaafda559a.zip |
[3015] Rewrote to use boost::lexical cast to convert string to values
Diffstat (limited to 'src/lib/cc/data.h')
-rw-r--r-- | src/lib/cc/data.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/cc/data.h b/src/lib/cc/data.h index d001a29a9b..ca1c5eff65 100644 --- a/src/lib/cc/data.h +++ b/src/lib/cc/data.h @@ -167,7 +167,9 @@ public: /// is of the correct type /// //@{ - virtual bool setValue(const int64_t v); + virtual bool setValue(const long long int v); + bool setValue(const long int i) { return (setValue(static_cast<long long int>(i))); }; + bool setValue(const int i) { return (setValue(static_cast<long long int>(i))); }; virtual bool setValue(const double v); virtual bool setValue(const bool t); virtual bool setValue(const std::string& v); @@ -381,7 +383,7 @@ public: using Element::getValue; bool getValue(int64_t& t) const { t = i; return (true); } using Element::setValue; - bool setValue(int64_t v) { i = v; return (true); } + bool setValue(long long int v) { i = v; return (true); } void toJSON(std::ostream& ss) const; bool equals(const Element& other) const; }; |