bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

verify.h in C++? Boost has me worried.


From: Paul Eggert
Subject: verify.h in C++? Boost has me worried.
Date: Tue, 04 Oct 2005 11:57:30 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

A student pointed out that Boost has a BOOST_STATIC_ASSERT(x) macro
that acts like verify(x) but is defined in a much more-complicated
way.  See <http://boost.org/boost/static_assert.hpp>.  Boost's version
has special cases for GCC, for MSVC, for SGI MIPSpro, etc., ,etc.

<verify.h> was originally designed for C, but I had thought that it
would work for C++ compilers too.  Is there some reason that a C++
implementation would need all that extra complexity to support
<verify.h> properly, or am I missing something?

I'm worried that verify.h will eventually need to gorp similar to Boost's.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]