Question: In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway? I have the following code: The problem I have is in the typedef Tail::inUnion<U> dummy line. I’m ...
Question: I am trying to do a forward declaration of a struct in c++ that has a typename. Something like this is entirely valid: My struct just instead has a typename, so I tried this: However, I then get the ...
Question: Hello! above is my code which is a placeholder for my radixTree implementation. I don’t understand why I need the typename before the std::map on the second line, and why &(it->second) would end up returning a const_Ty2*. I thought ...