
17 Oct
2006
17 Oct
'06
12:40 p.m.
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.