commit | c43acf74c1542c8f0eb58198488a1f153f59d42d | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Tue Jul 02 19:28:22 2019 +0200 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Wed Jul 03 11:16:28 2019 +0200 |
tree | aaa24a0a5424a654af9fd6b373b9f459081fa383 | |
parent | 73d0b168fe40f84254b957b072c3b56b486a742e [diff] |
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
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.