Can be the problem related to the next :
The class A create an instance of classB, doing forwarding
After I have inside ClassA the next function
my_classB->write(string file_out, this); ( the my_classB declare is : my_classB(string a_file,ClassA *class_a_parent )
my_classB->write(string file_out, this); ( the my_classB declare is : my_classB(string a_file,ClassA *class_a_parent )
To copy to clipboard, switch view to plain text mode
( ClassA *class_a_parent is also using forwarding )
( Both clasess use forwarding to each other )
And inside write method I have
W_ascii * ascii = new W_ascii;
class_a_parent->a_method_of_class_A(ascii)
W_ascii * ascii = new W_ascii;
class_a_parent->a_method_of_class_A(ascii)
To copy to clipboard, switch view to plain text mode
Ok, I think class_a_parent->a_method_of_class_A is the guilty of pass W_inpout::W_ascii*& insteadof W_inpout::W_ascii*
It happens with every object I create and want pass to the function, I have the same error *& expected *, &int, expected int ....
(somebody appends & ....)
What do you think ?
Bookmarks