How to use std::print() with wchar_t? [duplicate] (stackoverflow.com)stack
24 points by Bobby in stackoverflow.com · 1h ago · stack
A book (Beginning C++23: From Beginner to Pro) that I was reading about C++ asserts the following: But apparently, std::print() doesn't format wchar_t characters or strings. Does it? #include <print> int main(void) { wchar_t c = L'\U0001F5F2'; std::println("{}", c); return 0; }…