
14 Dec
2010
14 Dec
'10
3:59 p.m.
Hello,
The following code fails to compile (MSVC10, Boost 1.45) with "error
C2893: Failed to specialize function template..."
It seems that the compiler tries to evaluate mpl::apply, doesn't it?
#include
::type* dummy = 0) { }
template<typename Type>
void test(Type,
typename boost::disable_if
<
and_
<
not_
::type* dummy = 0) { }
int main(int argc, char* argv[]) { test(int()); return 0; }