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::
On Thu, 02 Sep 2010 15:23:54 +0200, Christoph wrote:
> Am Donnerstag, den 02.09.2010, 12:54 +0200 schrieb Michael Schwendt:
> > On Thu, 02 Sep 2010 12:15:27 +0200, Christoph wrote:
> >
> > > Hi all,
> > >
> > > I just learned about closures in the Boost library and wanted to write
> > > some sho
Am Donnerstag, den 02.09.2010, 12:54 +0200 schrieb Michael Schwendt:
> On Thu, 02 Sep 2010 12:15:27 +0200, Christoph wrote:
>
> > Hi all,
> >
> > I just learned about closures in the Boost library and wanted to write
> > some shorter code. To test, I used the following snippet:
> >
> > #include
On Thu, 02 Sep 2010 12:15:27 +0200, Christoph wrote:
> Hi all,
>
> I just learned about closures in the Boost library and wanted to write
> some shorter code. To test, I used the following snippet:
>
> #include
> #include
>
> #include
> #include
>
> class FakeVisitor {
> public:
> virtua
Hi all,
I just learned about closures in the Boost library and wanted to write
some shorter code. To test, I used the following snippet:
#include
#include
#include
#include
class FakeVisitor {
public:
virtual void visit(int e) {}
virtual void visit(std::string e) = 0;
};
template clas