boost visitor - class name as template parameter - repost

已完成 已发布的 Mar 11, 2013 货到付款
已完成 货到付款

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.

C++编程

项目ID: #4323845

关于项目

6个方案 远程项目 活跃的Mar 14, 2013

授予:

martinhinsch

15+ years of experience with C++. Looks like an easy task.

$30 USD 在2天内
(0条评论)
0.0

有6名威客正在参与此工作的竞标,均价$48/小时

hbxfnzwpf

c++ expert, it is easy to me, please let me do it.

$65USD 在1天里
(14条评论)
4.3
wjx823

I am interested in this job.

$50 USD 在2天内
(1条评论)
2.4
monsterkane

I can help you with this.

$40 USD 在3天内
(1条评论)
1.0
bhaveshkhatarani

i will do it.

$50 USD 在3天内
(0条评论)
0.0
JInfoteck

I will do this for u...

$50 USD 在5天内
(0条评论)
0.0