Questions tagged [fmt]

The {fmt} formatting library and the C++ text formatting and output facility (C++20 `std::format` and C++23 `std::print`).

{fmt} is an open source formatting library for . It is similar in functionality to and sprintf. The formatting facility defined in the <format> header is based on it and provides a subset of {fmt}'s functionality.

259 questions
-1
votes
2 answers

fmt std::string displayed as numbers

I tried to format a simple string that will be displayed in the console long long duration = end - start; double ms = static_cast(duration) * 0.001; std::string resoult = fmt::format("{} => Duration: {} micro, {} ms",…
M1loseph
  • 1
  • 1
-2
votes
1 answer

c++ fmt converting multiple numbers into an ip format

Im trying convert numbers into an ip format e.g 127.0.0.1 my code fmt::format("{0}", num1, num2, num3, num4) i didn't expect this to work but i tried it anyways
-2
votes
4 answers

Why don't I see fmt logs in my terminal when running go app locally?

I'm trying to debug my golang app. Currently, I have an API request that isn't working which has this line of code: fmt.Errorf("Object(%q).CopierFrom(%q).Run: %v", dstName, object, err) How can I view the output of this error log? And if it's not…
Steez
  • 219
  • 5
  • 17
-5
votes
1 answer

Does C++23 `print` check to see if the write successfully made it into the stream?

I want to know whether or not the standard committee has fixed the infamous Hello, world! bug. I'm primarily talking about the new library (not yet available in any of the compilers). The {fmt} library (which has inspired the standard…
digito_evo
  • 3,216
  • 2
  • 14
  • 42
1 2 3
17
18