
Eric Niebler wrote:
Christoph Duelli wrote:
compiling
#include
fails with gcc version 3.3.3 (SuSE Linux) (running SuSE LES9)
Any chance that might be fixed? Anything I can do about it?
This is a pretty old compiler, and I don't have easy access to it. I Yes, unfortunately we have machine with that old thing. Too bad... Always makes me happy when my code does not work on an older machine ;-) suppose if you posted the error messages I might be able to suss out a workaround. Thanks. I will do so once back at work.
However, as a first hint:
I was able to compile my stuff after disabling (#if 0) the
following -apparently not needed by me- parts in that header.
Perhaps its an issue with BOOST_PROTO_DEFINE_FUNCTION_TEMPLATE.
/// as (a.k.a., lexical_cast)
///
BOOST_PROTO_DEFINE_FUNCTION_TEMPLATE(
1
, as
, boost::proto::default_domain
, (boost::proto::tag::function)
, ((op::as)(typename))
)
/// static_cast_
///
BOOST_PROTO_DEFINE_FUNCTION_TEMPLATE(
1
, static_cast_
, boost::proto::default_domain
, (boost::proto::tag::function)
, ((op::static_cast_)(typename))
)
/// dynamic_cast_
///
BOOST_PROTO_DEFINE_FUNCTION_TEMPLATE(
1
, dynamic_cast_
, boost::proto::default_domain
, (boost::proto::tag::function)
, ((op::dynamic_cast_)(typename))
)
/// const_cast_
///
BOOST_PROTO_DEFINE_FUNCTION_TEMPLATE(
1
, const_cast_
, boost::proto::default_domain
, (boost::proto::tag::function)
, ((op::const_cast_)(typename))
)
Perhaps there was a compile problem with these, too:
/// Usage: construct\