-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi,
I have an issue with the use of std::format.
On the wasm version __cpp_lib_format is not defined and the call of std::format jut do nothing.
On the native version __cpp_lib_format is not defined too and the call of std::format leads to a crash:
Here a minimal reproducible example:
#include <iostream>
#include <format>
#if defined(__cpp_lib_format)
std::cout << "__cpp_lib_format is defined" << std::endl;
#else
std::cout << "__cpp_lib_format is undefined" << std::endl;
#endif
const int value = 23;
const std::string value_formatted = std::format("{}", value);
std::cout << value_formatted << std::endl;I tried with c++20 and c++23 kernels.
anutosh491
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working