C++20 added char8_t and std::u8string for UTF-8. However, there is no UTF-8 version of std::cout and OS APIs mostly expect char and execution character set. So
C++20 added char8_t and std::u8string for UTF-8. However, there is no UTF-8 version of std::cout and OS APIs mostly expect char and execution character set. So
Imagine I've got sth. like this: template<typename Signature> struct Callable { template<typename FnType> requires std::convertible_to&l
According to cppreference, most uses of the volatile keyword are to be deprecated in C++20. What is the disadvantage of volatile? And what is the alternative so
Trying to use escape sequences to construct a char8_t string (to not rely on file/compiler encoding), I got issue with MSVC. I wonder if it is a bug, or if it i
If it doesn't, do you know what compiler or version will? See cppreference/format.
I came to know through this answer that: Signed overflow due to computation is still undefined behavior in C++20 while Signed overflow due to conversion is wel
Imagine you have those coroutines awaitable<void> a() { ... } awaitable<void> b() { co_await a(); } awaitable<void> c() { co_await
It is said in docs that modules support in CLang is partial. I'm using CLang under Windows 64-bit from recent release of LLVM 12.0. I successfully managed to us
To create a time point for the current time, you can use: std::chrono::system_clock::now(). I cannot figure out, however, how to create a time point given milli
I am experimenting with modules in clang, and would like to include the standard lib as modules instead of as includes. Currently I do this #include <iostrea
The following C++20 program: #include <utility> #include <cstddef> template<typename... Args> class C { template<size_t... I> s
Using std::array I can declare both the array itself and it's objects as const. const std::array<const int,2> a {1,2}; However, if I read the standard co
There are plenty of tutorials that explain how it's easy to use coroutines in C++, but I've spent a lot of time getting how to schedule "detached" coroutines. A
I would like to access to a tuple element at compile time by a value constexpr in the type #include <iostream> #include <tuple> #include <utility