Boost logo

Boost :

From: Johan Paulsson (boost.org_at_[hidden])
Date: 2006-11-07 18:58:48


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk