[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-users
Subject: Re: [Boost-users] Ugly warnings from BOOST_STATIC_ASSERT
From: Erik <esigra () gmail ! com>
Date: 2008-03-24 22:04:15
Message-ID: 47E8255F.6040308 () gmail ! com
[Download RAW message or body]
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 mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic