Fix printing of numbers

Previsouly, this template was used for printing "everything" that could
be printed by iostream's operator<<. This has worked well for strings
and int/uint, but it will break when trying to print out bits such as
uint8_t or int8_t, which are type aliases to signed/unsigned char.

Because we want these numbers to be printed as decimal *numbers* instead
of *characters*, fix this by using the std::to_string helper.

Change-Id: I430b4b640cbed2936a38d73261b31df6abf42b6e
1 file changed
tree: aaa24a0a5424a654af9fd6b373b9f459081fa383
  1. .clang-format
  2. .gitmodules
  3. .zuul.yaml
  4. CMakeLists.txt
  5. Doxyfile.in
  6. LICENSE
  7. LICENSE.md
  8. README.md
  9. ci/
  10. cmake/
  11. docs/
  12. example-schema.yang
  13. src/
  14. submodules/
  15. sysrepo_vars.hpp.in
  16. tests/
README.md

Console interface to NETCONF servers

Credits

Copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Copyright © CESNET, https://www.cesnet.cz/ . Most of the code was written by Václav Kubernát (FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.