Try putting typename before the my_string_map::type argument.
Try putting typename before the my_string_map::type argument. For more info, see: parashift.com/c++-faq-lite/templates.htm....
1 Whoa, thanks. It works. The more I use templates, the more weird they seem... – karoluch Jul 3 at 13:39.
My_string_map::type is a dependent name, as it depends on the template parameter T. For dependent names, you need to use typename: template bool add_to_string_map(typename my_string_map::type map, std::string str, T x) { ... }.
The compiler will not be able to deduce T. It seems obvious to a human but from the point of view of the compiler, this kind of deduction is impossible. The specialization works because you're no longer asking the compiler to deduce T.
There's a parameter (the third) of type T. – Ben Voigt Jul 3 at 14:07 @Ben: Last time I checked, it won't do that. – DeadMG Jul 3 at 21:16.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.