This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Weird (unintuitive?) behavior of std::tuple


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]