2 questions from the last 7 days
7
votes
4
answers
369
views
How can I format a duration with std::println?
After running this program
(compiled with MSVC compiler 19.50.35723 with option /std:c++23preview)
#include <print>
#include <chrono>
#include <string>
int main() {
using ...
8
votes
1
answer
269
views
Why is the global namespace printf function found without importing module std.compat?
While compiling this snippet
import std;
int main() {
printf("%s", "hello");
return 0;
}
using MS VS C++ compiler 19.50 with /std:c++23preview I got the expected error ...