python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Passing 'this' pointer to a static method in a parent class
I am writing an embedded application using freeRTOS and I'm trying to do it in a neat, object-oriented fashion.
To start a FreeRTOS task from within an object, you need to give it a static function. I...

user13989581
Votes: 0
Answers: 1
Relying on compiler optimization of multiple static cast calls?
I'm working with a code base where I see the following lines of code
auto a = static_cast<custom_type*>(obj.get())->a();
auto b = static_cast<custom_type*>(obj.get())->b();
aut...
student010101
Votes: 0
Answers: 2