0

I got the following struct:

template<typename GRAPHEDGE>
struct DOTFormatWrapper
{

    typedef GRAPHEDGE::Node Node;
    // code

};

Graphedge of course has an internal type "Node"

Compiling produces the error "encode.hpp:19:10: error: missing 'typename' prior to dependent type name 'GRAPHEDGE::Node'"

I don't understand... I have the template type declared before the typdef. Could somebody explain to me what the mistake is?

lo tolmencre
  • 3,804
  • 3
  • 30
  • 60
  • 4
    `typename` is in quotation marks, meaning the compiler is literally telling you exactly what to put and exactly where to put it. – chris Jul 03 '15 at 00:59
  • I see, thanks. Though I only vaguely understand the explanation in the other thread. – lo tolmencre Jul 03 '15 at 01:18

0 Answers0