From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-10-17 08:40:10


John Maddock wrote:

> You could try:
>
> template <class F>
> struct is_c_linkage : public mpl::false_{};
>
> extern "C" {
>
> template <class R, class T>
> struct is_c_linkage<R(*)(T)> : public mpl::true_{};
>
> }
>
> and see if it works or not [...]

It doesn't, templates with C linkage are not allowed.