I have the following problem with the curiously recurring template, with a problem when I try to access the data member of CRTP base class.
template
It doesn't really have to do with CRTP, but rather with the fact that for dependent-base-accessing derived code, you need to qualify things.
Changing the line to
std::cout<protectedData<
solved it.
See accessing a base class member in derived class.