|
Boost : |
Subject: Re: [boost] A design for geometric objects
From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2008-11-14 17:24:11
> I was in the middle of typing up a proposal for what Bruno suggests, but had a different solution to knowing whether a specialization exists. My solution was simply to register the conceptual type of the object with a meta function, which indicates both that the corresponding traits should also be defined as well as an easy way to tell what conceptual type that object most closely models.
>
> <snip>
Indeed it's another right approach I think, don't know either which
one would be the best one.
Unless I missed something, you can use the Boost.TypeTraits's is_same
in conjunction with enable_if instead of your SFINAE_is_same_type.
Bruno
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk