c++20
Modules in C++ - what is it and when to use it?
What are modules? Why are they needed and how do they differ from header files? When should I use one, and when should I use the other?
Visual Studio does not see that I have enabled the C++20 compiler
I program quite a lot in C++ in Visual Studio, but there was a big problem: Visual Studio does not want to "see" what I have ... like to know how to fix this problem. I have Visual Studio 2019, and the compiler is exactly installed in the latest version.
How do modules from c++20 work?
I decided to see what changes were introduced in the 20th standard, and one of the first changes put me in a dead end: module ... ent file and start processing the others until the desired module is encountered? How do modules affect compiler performance?
Why is the comma in indexing deprecated in C++20?
Why is the use of the , operator in the [] array indexing operator deprecated in C++20?
For example, the following use-case n ... g(index), index] << '\n';
}
Warning: top-level comma expression in array subscript is deprecated
[-Wcomma-subscript]
Literature on the coroutines of the vehicle
Tell me, is there any full-fledged literature on the very coroutines that are not yet in the STL, and which are still kind of ... single book or a full-fledged guide anywhere, just a couple of articles on Habr from Yandex and the publishing house Peter =(
Equivalence operator <=>
I recently saw the operator in someone else's code and experienced a culture shock. What is the beast, what does it do, and ... ;iostream>
#include <compare>
int main() {
int a, b = a = 42;
std::cout << (a <=> b == 0);
}