ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[boost] uncreatable
by Jason Hise other posts by this author
Sep 29 2005 12:06PM messages near this date
Re: [boost] uncreatable | Re: [boost] uncreatable
SOURCE Why does the following compile?  The parameter type of A's pure virtual 
function is private.  How come B can see it, allowing it to override the 
pure virtual function?

class A
{
private:
    struct S {  };
    virtual void bar ( S ) = 0;
};

class B : public A
{
public:
    virtual void bar ( A::S )
    {
    }
};

int main (  )
{
    B b;
    return 0;
}

-Jason

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Jason Hise
Simon Buchan

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved