[haiku-commits] Re: haiku: hrev52133 - src/apps/mediaconverter

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 26 Jul 2018 12:13:11 +0200

Am 26.07.2018 um 11:43 schrieb Julian Harnath:

Hey,

Am 26.07.2018 um 11:26 schrieb Stephan Aßmus <superstippi@xxxxxx <mailto:superstippi@xxxxxx>>:

You did /not/ say media_format ist not a POD type.

Relevant article from C++ FAQ:
https://isocpp.org/wiki/faq/intrinsic-types#pod-types

Given that, current media_format is not a POD (has private members, an overload of assignment op, etc).

At first, I have used the term wrongly. Later, I didn't mean that media_format is a POD type. The point is that memset() is currently effective at initializing a media_format including the complex fields that it has, since all of those end up in POD fields themselves, and the enum values which mean "uninitalized" all have a value of "0". It has been designed that way.

Best regards,
-Stephan


Other related posts: