M
Mark Piffer
Sorry if this ends up out-of-thread but Google posting seems to have a
temporary problem quoting articles.
Am I correct in conjecturing that the basic conclusion of this UB is
that one can't write an allocator of his/her own? Without having free
storage at hand (i.e. having only objects with declared type) one is
doomed to use the storage the way it was declared or not at all? 8(
This renders many embedded application non-conformant which can't use
"malloc" but could do well with a constrained mini allocation scheme
in an array of char - I am scared.
Mark
temporary problem quoting articles.
That's up to you and whether you are convinced or not.
Another place to look would be the rationale which has a reasonable
section on the whole basis of the aliasing rules.
Lawrence
Am I correct in conjecturing that the basic conclusion of this UB is
that one can't write an allocator of his/her own? Without having free
storage at hand (i.e. having only objects with declared type) one is
doomed to use the storage the way it was declared or not at all? 8(
This renders many embedded application non-conformant which can't use
"malloc" but could do well with a constrained mini allocation scheme
in an array of char - I am scared.
Mark