Subject: Re: [boost] [Re:Opaque Typedef] observations on opaque typedef
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-10-20 04:27:21
On 10/20/2011 09:43 AM, Robert Ramey wrote:
> I realize that this is whole different kettle of fixh than BOOST_STRONG_TYPE
> or OPAQUE_TYPE. So this might be considered off topic. or maybe not.
How is it not exactly the same thing?
You want to create a new type that, for all practical purposes, is the
same as the original one, but that can be specialized and overloaded on.
> Comments welcome. Also anyone can feel free to correct my understanding of
> the template alias feature of C++0x to create new types.
The point of template alias is indeed to create an alias, not a new type.
It has nothing to do with a so-called "strong typedef".
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk