Message from C, C++ discussions

December 2019

— Hello everyone. I have two questions. 1. Does anyone know telegram chats about embedded programming? 2. Can someone say something good or bad about book "Reusable Firmware Development"?

Message permanent page


Since you have a Russian name, I can suggest you to look for chats you need here: it_chats — this is a collection of chats about programming, mostly Russian speaking

— I found a piece of code assigning reference to its own. What are the reasons behind?

auto &val = map[key];
val.first = xxx;
map[key] = val;

Why don't we do it in this way:
map[key].first = xxx;

Message permanent page

— Well, maybe an author of this wanted to do unnecessary copy

— I don't see any other reason

— Your suggestion is correct and should work

— Ty, i save it, but i search english speaking chats.

— There is no built-in type for trees in C.

— I know but restrict with 2 underscore is not allowed by telegram because it marks italic text and sure its a compiler extension

Message permanent page

— I knew it!
All I had to do is initiate the virus

— See where it leads us

— User Ramu has 1/2 warnings; be careful!
The latest warn was because:
not c/c++ yt no description