boost visitor - class name as template parameter

Avg Bid (USD)
Project Budget (USD)
$30 - $250

Project Description:
The attached compiles and run (boost 1.53.0/MSVC 2010). At present 'example_visitor::value_type visitor ;' is hardcoded within Foo class. .
a) I need code modifed to accept class name as template parameter. In other words, code should accept "user_defined_class::value_type" as template parameter where 'user_defined_class' will be a class name of users choice.

I'm ok with revising the 'factory' (i.e. the Foo class) implementation if necessary.

Skills required:
C++ Programming
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

Hire LightITGroup
$ 99
in 2 days
Hire sudewa
$ 100
in 1 days