Re: [OT] general C++ question

2010-09-03 Thread Michael Schwendt
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::

Re: [OT] general C++ question

2010-09-02 Thread Michael Schwendt
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

Re: [OT] general C++ question

2010-09-02 Thread Christoph Höger
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

Re: [OT] general C++ question

2010-09-02 Thread 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 > #include > > #include > #include > > class FakeVisitor { > public: > virtua

[OT] general C++ question

2010-09-02 Thread Christoph Höger
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