
19 Feb
2010
19 Feb
'10
3:35 p.m.
On Fri, Feb 19, 2010 at 9:02 AM, Peter Dimov <pdimov@pdimov.com> wrote:
Zachary Turner wrote:
The line it's pointing to is this:
enum _vt { value = sizeof( f( static_cast<Y*>(0) ) ) == sizeof(yes) };
and in particular it's having a problem determining the return type of f( static_cast<Y*>(0) ). It's thinking that whatever overload it's finding for f() here returns type void. Which doesn't make sense neither one returns void.
Any ideas?
None. It works on MSVC 7.1, 8.0, 9.0. I'm surprised that they don't test with Boost for regressions. :-)
You can #define BOOST_SP_NO_SP_CONVERTIBLE to avoid the error.
This is really weird, but I can't reproduce it from my work computer. Maybe I need to look into it more.