Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Static assertion
Static assertion [message #35361] Mon, 06 February 2012 15:59 Go to next message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
Hi,

Is there any particular reason why definition of STATIC_ASSERT is empty in UPP? I have a proposition to either remove it or change this definition to something useful:

#define STATIC_ASSERT( expr )			{ struct __static_assert { unsigned static_assert:(expr); }; }
Re: Static assertion [message #35362 is a reply to message #35361] Mon, 06 February 2012 17:29 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Zbych wrote on Mon, 06 February 2012 09:59

Hi,

Is there any particular reason why definition of STATIC_ASSERT is empty in UPP? I have a proposition to either remove it or change this definition to something useful:

#define STATIC_ASSERT( expr )			{ struct __static_assert { unsigned static_assert:(expr); }; }



OK, patch applied.
Previous Topic: LibX11 error & lock-up in debug mode with GridCtrl
Next Topic: Drawing with masks
Goto Forum:
  


Current Time: Thu Apr 18 23:13:30 CEST 2024

Total time taken to generate the page: 0.01664 seconds