
22 Jun
2006
22 Jun
'06
9:17 a.m.
Matt Calabrese wrote:
Another simple implementation would be to just use partial template specialization:
template< typename Type, template< typename > class Template > struct is_instantiation_of : false_type { };
template< typename Arg, template< typename > class Template > struct is_instantiation_of< Template< Arg >, Template > : true_type { };
/////////////////////////
// And a more modular form
Matt, looks like you've got this sussed out, care to wrap it up and make it a submission complete with tests etc? John.