mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Replace std::cout and std::cerr with fmt::print() (#3519)
This commit is contained in:
@@ -2,12 +2,10 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "fmt/core.h"
|
||||
#include "wpi/SmallString.h"
|
||||
#include "wpi/hostname.h"
|
||||
|
||||
int main() {
|
||||
wpi::SmallString<128> v1("Hello");
|
||||
std::cout << v1.str() << std::endl;
|
||||
fmt::print("{}\n", v1.str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user