
17 Jan
2006
17 Jan
'06
2:29 p.m.
"Tobias Schwinger" <tschwinger@neoscientists.org> wrote
Typeof acts like a black hole in this context; the "laws of C++ physics" seem not to apply any longer. There should be absolutely no reason for deduction to fail like this:
test.cpp(77) : error C2784: 'boost::spirit::positive<S> boost::spirit::operator +(const boost::spirit::parser<DerivedT> &)' : could not deduce template argument for 'const boost::spirit::parser<DerivedT> &' from 'T'
What's T? There seem to be a number of contexts when some types can't be bound to const T&. For example VC71 can't do it from inside the template when T is a function (see currently failig typeof test). Regards, Arkadiy