Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
357
Issues
357
List
Boards
Labels
Milestones
Merge Requests
49
Merge Requests
49
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
Kea
Commits
093b3333
Commit
093b3333
authored
Feb 03, 2019
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[429-Updated-StampedValue-to-support-reals] Fixed the 7.0 issue
parent
ca62c0ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/lib/cc/stamped_value.cc
src/lib/cc/stamped_value.cc
+9
-1
No files found.
src/lib/cc/stamped_value.cc
View file @
093b3333
...
...
@@ -114,7 +114,14 @@ StampedValue::getValue() const {
case
Element
:
:
boolean
:
return
(
value_
->
boolValue
()
?
"1"
:
"0"
);
case
Element
:
:
real
:
return
(
boost
::
lexical_cast
<
std
::
string
>
(
value_
->
doubleValue
()));
{
std
::
string
repr
=
boost
::
lexical_cast
<
std
::
string
>
(
value_
->
doubleValue
());
if
(
repr
.
find_first_of
(
'.'
)
==
std
::
string
::
npos
)
{
repr
+=
".0"
;
}
return
(
repr
);
}
default:
// Impossible condition.
isc_throw
(
TypeError
,
"StampedValue: invalid type of the '"
...
...
@@ -125,6 +132,7 @@ StampedValue::getValue() const {
isc_throw
(
BadValue
,
"StampedValue: unable to convert the value of "
"the parameter '"
<<
name_
<<
"' to string"
);
}
// unreachable
return
(
value_
->
stringValue
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment