Skip to content

Commit

Permalink
~ NsSkelConfiguration
Browse files Browse the repository at this point in the history
Template specialization fix

Addressing issue #1 "Circuit breaker"
  • Loading branch information
dmerkushov committed Feb 22, 2020
1 parent f913737 commit 7f76bc6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ns-skeleton/src/NsSkelConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ bool NsSkelConfiguration::hasParameter(string paramName) {

namespace nanoservices {

template<>
NsSkelJsonPtr NsSkelConfiguration::getParameter<NsSkelJsonPtr>(std::string paramName,
NsSkelJsonPtr defaultVal) throw(nanoservices::NsException) {
if (!hasParameter(paramName)) {
return defaultVal;
}
return _configuration->find(paramName)->second;
template<>
NsSkelJsonPtr NsSkelConfiguration::getParameter<NsSkelJsonPtr>(const std::string &paramName,
NsSkelJsonPtr defaultVal) throw(nanoservices::NsException) {
if (!hasParameter(paramName)) {
return defaultVal;
}
return _configuration->find(paramName)->second;
}
}

0 comments on commit 7f76bc6

Please sign in to comment.