Answer the question
In order to leave comments, you need to log in
How to cast not in C style?
How to cast a non-C-style pointer?
The problem is this:
if (bind(socketFd_, (const sockaddr*)&info_, sizeof(info_)) < 0)
throw ft::Socket::FailOnSocket("Cant bind Socket");
struct sockaddr_in
to just sockaddr*
But I don't understand how I can cast in c++ style? dynamic_cast
and const_cast
they don't help me? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question