24 Apr
2013
24 Apr
'13
3 p.m.
2013/4/24 Robert Jones
Hi Folks
I know has_call is not yet part of Boost, but using the implementation from
https://github.com/jamboree/boost.has_call
with this code
#include "boost/type_traits/has_call.hpp" #include <cassert>
template
bool HasCall(F const&) { return boost::has_call ::value; } void DefaultVal(int) {}
int main() { assert(HasCallboost::dont_care(int)(DefaultVal)); }
fails to compile for me, with a template instantiation ambiguity error. Seems the error is triggered by the use of boost::dont_care.
Any ideas?
Replied in another thread, just fixed it. HTH