Topic: Using of nested types


Author: aon.912719634@aon.at (Nicolas Pavlidis)
Date: Fri, 21 Apr 2006 20:14:39 GMT
Raw View
Hi!

I've a little question regarding code like this:

class Test
{
public:
  typedef std::auto_ptr<Test> TestPtr;
};

// in some cpp - file:

using Test::TestPtr; // not C++

Why is this use of using is not allowed? I know that I can simulate it
with a nother typedef, why is there no uniform way over using?

Thanks,
Nicolas


--
|     Nicolas Pavlidis       |       Elvis Presly:          |
|   Student of SE  & KM      |      "Into the goto"         |
|  pavnic@sbox.tugraz.at     |       ICQ #320057056         |
| ------------University of Technology, Graz-----------------

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]