Hi all,
I'm attaching the example of writing the reducer for linked list. The problem is that i get an error at compile time as follows:
test1.cpp(81): error: class "cilk::reducer<IntListMonoid>" has no member "add_value"
list->add_value(i); // "list->" accesses the view
^
test1.cpp(84): error: class "cilk::reducer<IntListMonoid>" has no member "get_value"
return list->get_value(); // "list->" accesses the view
^
It does not allow me to access the view class members even though i have made "IntListMonoid" a friend class in "IntListView" class. So please anybody can help me out of this?
--Abdul Jabbar--



