In Clang compiling this gives me error
template<typename TYPE> struct Base
{
bool variable;
};
template<typename TYPE> struct Ext : Base<TYPE>
{
void clear() {variable=false;} // <- error here
};
error: use of undeclared identifier.
From Why do I have to access template base class members through the this pointer?, I know a workaround is to use "this->variable", but that's painful to use always, is there any compiler flag to disable this?
I'm looking for a Clang Compiler Flag option to disable this error completely. On MSVC you can do that with "/permissive" command line flag. I was looking for similar option on Clang, and the "-fpermissive" flag doesn't work.