Boost logo

Boost Users :

From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2008-05-22 11:47:14


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net