Topic: help with vector of nested class


Author: "JBowl" <jkhanson@ix.netcom.com>
Date: 1997/12/29
Raw View
Is there a reason why I can't have a container of a nested class?
Am I doing something semanticlly wrong?

OR:
  Do I just have a compiler that won't accept this (MS 5.0)?


class X
{
   class Y
   {
   public:

    Y(){}
    bool operator<(const Y &rhs) const { return true; }


    bool operator==(const Y &rhs) const {return true;}

 };
public:
   X(){}

   std::vector<Y> vecY;
};
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]