Hello. I'm making a class called "Packet" which will be used to build packet buffers for an online server that i'm coding for a game. The Packet class "inherits" a class called "ByteStream". The reason i can't just use ByteStream is because the protocol for the game is very strange and integers need to be formatted in a specific format before they can be writted/read.
When i inherit a class, do i have to rewrite all the operators the class overloads? I think for some reason the compiler is calling the default "=" operator (where it does a shallow copy or whatever it's called) rather than calling the "=" operator defined in ByteStream. Heres what Packet looks like:
So if i did this:Code:class Packet: public ByteStream { ... }
Would that call ByteStream:perator=(const ByteStream&)??Code:Packet packet; packet = Packet();