Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Implementing static_assert Date: Wed, 06 May 2015 13:28:14 -0700 Organization: None to speak of Lines: 18 Message-ID: <876185lach.fsf@kst-u.example.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="9be37d943435275679235b07c7947eef"; logging-data="15492"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dC7boMfn7Leg9UNjawsev" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:0zH1T5/bVsWueaSPdm2gb5gQVro= sha1:WhqnhRGyi6Jcys2TGXz8fF8E8mM= Xref: csiph.com comp.lang.c:61643 jacobnavia writes: > I have added this useful construct to the lcc-win compiler. > > Description: > > #include > static_assert(boolean expression, message) [snip] See my reply in comp.compilers.lcc (I happened to see that first). Quick summary: This is standard in C11. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"