> You can't get very meaningful errors here - I have not found any way to get
> a user-defined error message in conjunction with static asserts.

I added ##_##message, to NAME2_ and updated everything else as needed,
so now I get
static_assert( 1 == 2, One_Not_Equal_To_Two ); that looks like:
assertion_failed_at_line_767_One_Not_Equal_To_Two
Closer to a meaningful message at least.

> AFAIK, an effort to get standardised static assertions into both C and C++
> with useful messages.  But in a fine example of mind-blowing stupidity,
> C++0x uses  static_assert(expression, message)
> while C1x calls it _Static_assert.

Standards are great thing, everyone can have one. :-(

Thank you and everyone else for the help.

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to