commit | 8e121ffc24929e209f1b64993c24b5e267265a96 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Tue Oct 15 15:47:45 2019 +0200 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Tue Oct 15 16:05:39 2019 +0200 |
tree | 1a5e95b2f32d5fece0dbaaba589940d277b70528 | |
parent | 8e2b497f2df95e8e245619eb36b54612f7c2066d [diff] [blame] |
Fix NetconfAccess not treating bools as bools Change-Id: I024040efe78dd46e1fd89bd8e22f4942e80c7854
diff --git a/src/utils.cpp b/src/utils.cpp index 979bda4..672cd36 100644 --- a/src/utils.cpp +++ b/src/utils.cpp
@@ -113,6 +113,14 @@ return data; } + std::string operator()(const bool& data) const + { + if (data) + return "true"; + else + return "false"; + } + template <typename T> std::string operator()(const T& data) const {