Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Why can't PODs have constructors?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="JohnQ, post: 2994735"] [...] "They have their acts together. It's you that don't seem to understand." I won't be buying that Brooklyn bridge either, thank you. "And pay an extremely high performance penalty for it." You're assuming that byte-aligning struct members implies non-optimum alignment. That's a wrong assumption. And perhaps you're thinking that everything has to be byte-aligned or not, which isn't the case either. "More than a few applications can't afford that." There is no penalty if you define your stucts correctly so that the data members align. Secondly, the vast majority of applications are not performance constrained. Indeed, they are IO constrained if anything, so not having to marshal will speed up the program (on the "native" platform). John [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Why can't PODs have constructors?
Top