Boost logo

Boost Users :

Subject: Re: [Boost-users] compile-time check that a member function exists
From: Igor R (boost.lists_at_[hidden])
Date: 2009-03-25 13:24:57

> Check Boost.vault for a file called, it contains the
> afformentionned macros in a boost-ified form.

Great, thank you!
Unfortunately, there's one more issue: it seems that this test fails
if the function is inherited from a base class. I mean the following

struct B
  void f(int);

struct D : B
{ };

//has_member_function_f<D>::type is mpl::bool_<false>

Is it possible to overcome this problem?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at