
4 Feb
2014
4 Feb
'14
6:44 p.m.
On 2/4/2014 12:24 PM, Rodrigo Madera wrote:
namespace john { template <typename T> struct is_pretty : boost::false_type {};
template <> struct is_pretty<foo> : boost::true_type {};
template <> struct is_pretty<bar> : boost::true_type {};
// ... }
That's pretty much what I started with, but it doesn't handle automatic inheritance as the main template is used for anything not exactly specialized. And I don't like that it would require specializing a template in another namespace, which is awkward at best.