I have a template class as given below in a.hpp file.
template < typename GraphR,
typename AbsV,
typename GraphT = GraphTs< GraphR > >
class ForwardF {
public:
class AbsVC{
Some definitions};
};
I have another class where I want to use the AbsVC type as given below.
#include <a.hpp>
template < typename GraphR,
typename AbsV,
typename GraphT = GraphTs< GraphR > >
class Interleave
: public ForwardF< GraphR, AbsV, GraphT > {
private:
using InTable = std::unordered_map< GraphT, std::vector<AbsVC>>;
};
I am getting error that AbsVC is not defined in this scope. Notice that the ForwardF
is the base class and Interleave
is derived class. So AbsVC
which is defined in the base class should be visible in the derived class. Please tell me how to solve this problem.