Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-06-22 05:17:35


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk