c++ - initializer lists with objects is non-portable? -
i'm reading mozilla's c++ portability guide 1 of advice states that:
don't use initializer lists objects
non-portable example (at least, used nonportable, because hp-ux!):
subtlepoint mypoint = {300, 400};
this more of style thing @ point, why not splurge , nice constructor?
and i'm rather curious line "non-portable example (at least, used nonportable, because hp-ux!)". how come initializer lists are/were non-portable , in sense? safe use now? , term hp-ux refers to?
how come initializer lists are/were non-portable , in sense?
the guide quote implies aren't/weren't portable in sense not work in hp-ux. since using initializer list objects defined standard, implies compiler used in hp-ux not conform it. guide not specify, how breaks in hp-ux.
and term hp-ux refers to?
it operating system.
are safe use now?
if don't need support hp-ux, or other system not conform standard, , has been safe.
"at least, used be nonportable" might due mozilla no longer officially supporting new versions of products on hp-ux, or new version of compiler on hp-ux conformant. speculation.
Comments
Post a Comment