Re: [OT] general C++ question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 02 Sep 2010 15:23:54 +0200, Christoph wrote:

> The intention is to extend a visitor pattern with a templated class that
> overloads exactly one method.

Since my reply sent yesterday is truncated for unknown reasons, let me try
to reconstruct the missing part:

| v.FakeVisitor::visit(std::string("hallo"));

The declaration of GenericVisitor::visit hides the other visit members
found in the base class FakeVisitor. You would need to pull it into scope
either as above or with a "using" declaration (using FakeVisitor::visit)
in GenericVisitor.
That is independent from what you're trying to achieve with Boost, btw.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux