a Semicolon
How to fix it?
Vlad
a Semicolon
Vlad
How bro?
Using the magic of gdb
a Semicolon
Vlad
Or whatever debugger you got
Vlad
Can you guide?
Set up a breakpoint and step through duh
Diego
Then you'd know everything is either 0 or nullptr
Diego
At least, afaik
Anonymous
There are three types of memory in C++: The Stack, Static Memory, and the Heap
Wanna I break your brain? There's no "stack memory" in C++ And no heap
Vlad
Then you'd know everything is either 0 or nullptr
You mean that the object shall be zero filled?
Vlad
Wanna I break your brain? There's no "stack memory" in C++ And no heap
Yeah we know standard was made by ancient reptiloids who defy human logic
Diego
Could you please elaborate?
Anonymous
Could you please elaborate?
There's no such thing in C++ standard as stack or heap
Anonymous
It's all described in abstract terms
Diego
Oh I see
Diego
So Stack and Heap are just the most common concepts for implementation?
Diego
Yes
I see I see Thanks for explaining
MAC
In Programming language, how much the importance of math?
If you want to be professional you need math
Anonymous
Lol
Anonymous
Lol
Anonymous
Was wondering can we edit the iostream file to change name "std" to something else?
Vlad
You can't
Vlad
It shall be UB
Anonymous
;________;
Vlad
;________;
Do an alias
Vlad
Bruh
Anonymous
Do an alias
Oh wait how XD
Roxifλsz 🇱🇹
Or just don't
Roxifλsz 🇱🇹
What's wrong with std
Vlad
Oh wait how XD
namespace foo = std;
Anonymous
What's wrong with std
Nothing as such but i wanna XD
Os Os
Hi
Os Os
C++ or C
Os Os
Were the pest langoin
H
namespace foo = std;
+using (c++17) -namespace
Anonymous
@nameful the process till now is that i have changed iostream to aloo_pakoda XD (an indian dish name) id be changed all the std's to aloo(potato) so Its gonna work then
Anonymous
Can anyone explain me the solution of this https://practice.geeksforgeeks.org/problems/minimize-the-heights3351/1
AHMED
Is there any kotlin telegram group to ask a question related to kotlin?
Damo
Hi can anyone send me kernel device driver handwritten notes
AHMED
@en_it_chats
No kotlin there!
Anonymous
No kotlin there!
Try to ask in Java / Scala groups
AHMED
Pavel
In any way this is a wrong channel to post anything like this.
klimi
yeah you are breaking rules and you are being scammed, have a nice day
Dima
ban incoming
H
ban incoming
I watched the neko nice job...
Savta
Hi guys just following up on the daemon program I am trying to write. Is there any recommendations for academic material on darmons/signals in c? I read the man for signals.h but I feel like I don't fully understand the concept of how it's working and how it's implemented. Any recommendations for learning source (preferably academic) would be highly appreciated!
Pavel
Hmm, watching this talk, stumbled upon this code, do anyone know how these overloads (with const & and && at the end) named so I can google them? (timecode) https://www.youtube.com/watch?v=xTdeZ4MxbKo&t=2396 std::string std::stringbuf::str() const &; std::string std::stringbuf::str() &&;
H
Yeah they overload the methods for reference types so you can overload a method if it's called on R or L value for example
why we do that?! why an instance of class have diffrent behaviors on rvalues and lvalures? I cant find an usefull example that force us to use it?
Anonymous
unfortunately the standard library doesn't use this feature on the standard containers because it will break compatibility.
Pavel
the biggest usage is to prevent modifiers from being run on temporaries
Hm, you mean we can have a function overloads that run on let's say only on & or const& then it will be a compile error if it will be called on a temporary?
H
the biggest usage is to prevent modifiers from being run on temporaries
really its not good reason ... we never use a temporary instance after changing it for example: myFunction(TempClassInstance()); if I use like this , how can I use temporary instance after modified?
Anonymous
Interesting
this doesn't exist though because compatibility
Anonymous
oops , I got it :D thx.
another (probably better) example. avoid deep-copy for temporary. @gameraccoon Foo Foo::sorted() && { sort(data.begin(), data.end()); return *this; } Foo Foo::sorted() const & { Foo ret(*this); sort(ret.data.begin(), ret.data.end()); return ret; }
Anonymous
Oh, also interesting by the way, should it be std::move(*this) in the first variant?
i think copy elision handles that. i will try to find a source.
H
how we can mute this bot :/