Fixed issues with minus on integers

This commit is contained in:
2021-11-22 12:42:36 +01:00
parent 0557bd1651
commit ba86cc40a5
3 changed files with 16 additions and 14 deletions

View File

@@ -3,16 +3,8 @@
#include <Logger.h>
class Uart {
public:
void write(char c) {
std::cout << c;
}
};
int main() {
constexpr auto formatted = format<"Test: {:012.5} {} {:034}">(142.4334, "abc", 1234);
constexpr auto formatted = format<"Test: {:012.5} {} {:8}">(142.4334, "abc", -1234);
for (const auto& c : formatted)
std::cout << c;