Topic: Why is the operand of alignof restricted to a type?
Author: Ian Collins<ian-news@hotmail.com>
Date: Fri, 17 Jun 2011 13:16:10 CST Raw View
This question came up on c.s.c, so I though I'd ask here.
From 6.5.3.4 sizeof may be applied to an expression or the
parenthesised name of a type while alignof may only be applied to the
parenthesised name of a type.
Is there a reason for the discrepancy?
--
Ian Collins
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: Arne Mertz <arnemertz@googlemail.com>
Date: Mon, 20 Jun 2011 10:29:50 CST Raw View
This _is_ c.s.c, right?
[Moderator's note: "c.s.c" is somewhat ambiguous, either comp.std.c or
comp.std.c++. This group is comp.std.c++. See the note below. - sdc ]
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]