|
Boost Users : |
From: Alo Sarv (alo17_at_[hidden])
Date: 2005-06-01 13:06:10
GCC4 seems to be rather picky on anonymous enums, and some code seems to
break in logic/tribool.hpp with the following error:
boost/logic/tribool.hpp: In member function
`boost::logic::tribool::operator void
(boost::logic::tribool::dummy::*)()() const':
boost/boost/logic/tribool.hpp:114: error:
`boost::logic::tribool::<anonymous enum>' is/uses anonymous type
boost/boost/logic/tribool.hpp:114: error: trying to instantiate
`template<class T> struct boost::is_integral'
boost/boost/logic/tribool.hpp:114: error:
`boost::logic::tribool::<anonymous enum>' is/uses anonymous type
boost/boost/logic/tribool.hpp:114: error: trying to instantiate
`template<class T> struct boost::is_integral'
Same error is repeated at lines 128, 161, and 162 (CVS HEAD).
Workaround/patch is obvious (making the enum named), but I haven't
managed to create a minimal test-case for the behaviour (the triggering
code is rather large and there doesn't seem to be any logic in what
actually triggers the error). Any ideas?
Alo Sarv
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