Update sysrepo
There's been an API change in the C++ bindings. This change brings this
project back in sync with cla-sysrepo.
Change-Id: Ia7919e8fd413805b06c151bb83913ade0b884344
diff --git a/src/sysrepo_access.cpp b/src/sysrepo_access.cpp
index 57d1cb3..5c80bbc 100644
--- a/src/sysrepo_access.cpp
+++ b/src/sysrepo_access.cpp
@@ -48,22 +48,8 @@
return std::make_shared<sysrepo::Val>(value.c_str());
}
- sysrepo::S_Val operator()(const uint32_t& value) const
- {
- return std::make_shared<sysrepo::Val>(value, SR_UINT32_T);
- }
-
- sysrepo::S_Val operator()(const int32_t& value) const
- {
- return std::make_shared<sysrepo::Val>(value, SR_INT32_T);
- }
-
- sysrepo::S_Val operator()(const bool& value) const
- {
- return std::make_shared<sysrepo::Val>(value, SR_BOOL_T);
- }
-
- sysrepo::S_Val operator()(const double& value) const
+ template <typename T>
+ sysrepo::S_Val operator()(const T& value) const
{
return std::make_shared<sysrepo::Val>(value);
}