double dispatch and Visitor Pattern
<p>While i was studying Composite Pattern I have encountered the concept of double dispatch and Visitor Pattern.
I have checked on wikipedia for double dispatch (<a href="http://en.wikipedia.org/wiki/Double_dispatch" rel="nofollow">http://en.wikipedia.org/wiki/Double_dispatch</a>) and followed the example.
I have understood in C++ virtual functions are dispatched dynamically and the function overloading is done statically, but my problem is the solution. 
It states the problem can be resolved by simulation double dispatch using a Visitor Pattern. 
Now I have checked several examples here and the example on GoF book for Visitor Pattern, but it's still  not clear to me how to apply the solution. Surely I am missing the point of Visitor Pattern. </p>

<p>Please can someone be so kind to explain the solution by completing the wikipedia example ?
Thank you in advance.  </p>
