Boost logo

Boost :

From: Peder Holt (peder.holt_at_[hidden])
Date: 2004-12-09 08:00:26


On Thu, 09 Dec 2004 06:44:00 -0700, Larry Evans
<cppljevans_at_[hidden]> wrote:
> On 12/09/2004 12:25 AM, Peder Holt wrote:
> [sni]
> > I propose to define the macro
> > BOOST_HAS_TEMPLATE_NESTED_CLASS_DEDUCTION for the VC compilers (and
> > possibly other compilers supporting this)
> > and supplying
> > BOOST_TYPEOF_REGISTER_TEMPLATE_NESTED if the above is set.
> >
> Wouldn't this just encourage the writting of code not conforming
> to the c++ standard?
>

Hmm. You have a point.
The main reason for creating something like this would be to allow
registration of the dinkumware iterators, which are defined as nested
classes (unlike the iterators of other stl-implementations which are
normal template classes already supported by the TYPEOF library)
BOOST_TYPEOF_REGISTER_TEMPLATE_NESTED should only be used in this
context, and not promoted outside of the TYPEOF library.

This functionality could also be implemented in the same scope as the
stl registration code. This would prevent the TYPEOF library from
being polluted, but would allow automatic registration of iterators
for all platforms.

Peder

> _______________________________________________
>
>
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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