|
Boost : |
From: David B. Held (dheld_at_[hidden])
Date: 2004-09-18 11:18:46
#include <boost/static_assert.hpp>
template <typename T>
struct foo
{
void bar(void)
{
BOOST_STATIC_ASSERT(false);
}
};
int main(void)
{
}
---------------------------------------------------------------------
toot.cpp: In member function `void foo<T>::bar()':
toot.cpp:8: error: invalid application of `sizeof' to incomplete type
`boost::STATIC_ASSERTION_FAILURE< false>'
---------------------------------------------------------------------
Is gcc wrong, or am I missing something really obvious? This used
to work. And yes, I have the latest boost CVS snapshot.
Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk