22 Aug
2005
22 Aug
'05
12:24
On Sunday 21 August 2005 3:51 pm, John D Lamb wrote:
Here's a puzzle: I'd like to define something like
typedef std::pair
P; I can obviously do
class P : public std::pair
{}; or
typedef std::pair
P; In this case, you have not yet defined P. You could use a forward declaration, such as: class P; Then, typedef std::pair P; should work. I have not tried your example specifically. -- Jerry Feldman Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9