<html>
    <head>
      <base href="https://bugs.documentfoundation.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - remove inheritance to std::map and std::vector"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=75757#c56">Comment # 56</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - remove inheritance to std::map and std::vector"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=75757">bug 75757</a>
              from <span class="vcard"><a class="email" href="mailto:matteo.casalin@yahoo.com" title="Matteo Casalin <matteo.casalin@yahoo.com>"> <span class="fn">Matteo Casalin</span></a>
</span></b>
        <pre>I was wondering: would private inheritance at the same time limit the public
interface and allow us to use C++11 aliases, saving some coding?

>From example (sw/inc/swregion.hxx):


typedef std::vector<SwRect> SwRects;

class SwRegionRects : public SwRects


could become


typedef std::vector<SwRect> SwRects;

class SwRegionRects : private SwRects
{
...
public:

    // only use a limited interface from SwRects
    using SwRects::size_type;
    using SwRects::operator[];
    using SwRects::size;
    using SwRects::empty;
    using SwRects::assign;
    using SwRects::begin;
    using SwRects::end;

...

Would this work?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>