
7 Nov
2006
7 Nov
'06
11:58 p.m.
I wrote:
Below is the compile-time assert I use. Would it be a useful addition to Boost?
To make it easier to digest, I put together a minimal web page with - Source code - A test - Compiler errors from the test, using different compilers (It's supposed to make compiler errors). Compiler errors from the same test using BOOST_STATIC_ASSERT, BOOST_MPL_ASSERT and BOOST_MPL_ASSERT_MSG is also included, to make it easy to compare. I think the benefits of my compile time assert is: - No macros - No compiler-specific implementation - It's easy to make useful error-messages Please have a look at <http://www.kuodo.com/code/assert/readme.html> Or download it (12kb) <http://www.kuodo.com/code/assert/assert.zip> Thank You, Johan Paulsson