I'm looking to declare the type of an extern "C" function pointer. It is a member variable. The syntax in this question I cannot get to compile.
template<typename Sig> struct extern_c_fp {
extern "C" typedef typename std::add_pointer<Sig>::type func_ptr_type;
};
I have experimented with placing the extern "C"
at both ends, and between typedef
and typename
and between type
and func_ptr_type
, but the compiler rejected all. Any suggestions?