Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
e14cc5ec
Commit
e14cc5ec
authored
Dec 14, 2011
by
Yoshitaka Aharen
Browse files
[master] address SunStudio build failure
parent
8cb64055
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/statistics/counter_dict.cc
View file @
e14cc5ec
...
...
@@ -75,9 +75,11 @@ CounterDictionaryImpl::deleteElement(const std::string& name) {
Counter
&
CounterDictionaryImpl
::
getElement
(
const
std
::
string
&
name
)
{
try
{
return
(
*
(
dictionary_
.
at
(
name
)));
}
catch
(
const
std
::
out_of_range
&
)
{
DictionaryMap
::
const_iterator
i
=
dictionary_
.
find
(
name
);
if
(
i
!=
dictionary_
.
end
())
{
// the key was found. return the element.
return
(
*
(
i
->
second
));
}
else
{
// If an element with specified name does not exist, throw
// isc::OutOfRange.
isc_throw
(
isc
::
OutOfRange
,
"Element "
<<
name
<<
" does not exist"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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