Including typedef of child in parent class
<p>I have a class which looks something like this. I'd prefer to have the typedef of ParentMember in the Parent class and rename it Member. How might this be possible? The only way I can see is to have std::vector as a public member instead of using inheritance.</p>

<pre><code>typedef std::pair&lt;std::string, boost::any&gt; ParentMember;
class Parent: public std::vector&lt;ParentMember&gt;
{
public:
    template &lt;typename T&gt;
    std::vector&lt;T&gt;&amp; getMember(std::string&amp; s)
    {
        MemberFinder finder(s);
        std::vector&lt;ParentMember&gt;::iterator member = std::find_if(begin(), end(), finder);
        boost::any&amp; container = member-&gt;second;
        return boost::any_cast&lt;std::vector&lt;T&gt;&amp;&gt;(container);
    }
private:
    class Finder
    {
      ...
    };
};
</code></pre>
