22 May 17:47
Re: tuple type question
From: Noah Roberts <roberts.noah <at> gmail.com>
Subject: Re: tuple type question
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-05-22 15:47:14 GMT
Subject: Re: tuple type question
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-05-22 15:47:14 GMT
Daniel Krügler wrote:
> #include <utility>
>
> template <typename>
> struct TT {
> typename std::pair<int, double>::first_type name() {
> return 0;
> }
> };
>
> int main() {
> return TT<void>().name();
> }
>
> If the compiler does not accept the typename here, it is
> broken, which was the essence of my OP.
I see. Yeah, it was a bit hard to track what was going on with the OP's
code.
RSS Feed