Boost logo

Boost Users :

Subject: Re: [Boost-users] [TypeTraits] Using has_call
From: TONGARI (tongari95_at_[hidden])
Date: 2013-04-24 11:00:34


2013/4/24 Robert Jones <robertgbjones_at_[hidden]>

> 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<typename Sig, typename F>
> bool HasCall(F const&)
> { return boost::has_call<F, Sig>::value; }
>
> void DefaultVal(int) {}
>
> int main()
> {
> assert(HasCall<boost::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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net