Hi,
I've tried to compile and run this code with tbb 4.1:
But found some errors, the changes I did to make it work was to replace:
broadcast_node<int> input;
for
broadcast_node<int> input(g);
and
make_edge( squarer, std::get<0>( join.inputs() ) );
make_edge( cuber, std::get<1>( join.inputs() ) );
for:
make_edge( squarer, std::get<0>( join.input_ports() ) );
make_edge( cuber, std::get<1>( join.input_ports() ) );
With that I could compile with tbb 4.1
Regards,
Link Copied
Hello, Daniel,
Thank you for pointing the problem out. The blog you mentioned was written before two changes:
We should update the code to reflect the changes (we have been discussing this subject recently, but have yet to have a good general solution.)
Best Regards,
Chris
For more complete information about compiler optimizations, see our Optimization Notice.