Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-28 19:28:00


Okay, then: "value_wrapper" and the more-specific "int_wrapper".

It is the "value" part of the name that I... er, value.

----- Original Message -----
From: "Andrei Alexandrescu" <andrewalex_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, November 28, 2001 6:26 PM
Subject: Re: [boost] Submission: typelist

> From: "David Abrahams" <david.abrahams_at_[hidden]>
> > as long as we're tinkering with names, consider "value_t" or
> > "value_type":
> >
> > template <typename T, T x>
> > struct value_t
> > {
> > static T const value = x;
> > };
> >
> > template <int x>
> > struct int_t : value_t<int, x> {};
> >
> > Did somebody already suggest that?
>
> I fear these will engender confusion because they are similar to size_t
and
> ptrdiff_t, types that don't have a generic programming conotation. So
> someone seeing int_t might think "hmmm, this must be some platform
specific
> integral type..."
>
>
> Andrei
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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