This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Weird (unintuitive?) behavior of std::tuple
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Alex Dubov <oakad at yahoo dot com>
- Cc: Tomasz Gajewski <tomga at wp dot pl>, Paolo Carlini <pcarlini at gmail dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 1 Nov 2010 00:01:12 +0000
- Subject: Re: Weird (unintuitive?) behavior of std::tuple
- References: <D88F519F-8240-4D8E-B3C6-BF9BD7A1F5BA@oracle.com> <507065.80883.qm@web37606.mail.mud.yahoo.com>
On 31 October 2010 11:52, Alex Dubov wrote:
>
> In my original usage case below, runtime errors will emerge for a wide
> variety of user specified _Tp types. This means, that either tuple/pair
> as currently implemented are unfit for such usage (and this should be
> documented somehow) or the implementation should be considered buggy.
The implementation's fine. Search the web for "most vexing parse" to
see what Paolo is hinting at.