|
Boost Users : |
From: Erik (esigra_at_[hidden])
Date: 2008-03-24 18:04:15
John Maddock skrev:
> However, the attached seems to work OK and fix the warning, can you
> double check where you are?
$ cat --number prov.cc
1 #include "static_assert.hpp"
2 BOOST_STATIC_ASSERT(1 < 2);
3 BOOST_STATIC_ASSERT(1 > 2);
$ LANG="" g++-4.1.2 -Wall -Wextra -Wold-style-cast -c prov.cc
prov.cc:3: error: invalid application of 'sizeof' to incomplete type
'boost::STATIC_ASSERTION_FAILURE<false>'
$ LANG="" g++-4.2.3 -Wall -Wextra -Wold-style-cast -c prov.cc
prov.cc:3: error: invalid application of 'sizeof' to incomplete type
'boost::STATIC_ASSERTION_FAILURE<false>'
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net