fix example 6

code typo in example 6 (expressiontree_example6.cpp). The code did not compile.