N.B. This has already been answered on gcc-help, where it belongs.
Sorry for not updating this list to say so.
I've also now added this topic to the isocpp.org FAQ:
https://isocpp.org/wiki/faq/templates#dependent-name-lookup-types
On 2 December 2016 at 12:12, chenzero wrote:
> Hello,
>
> I have f
On 12/02/2016 07:12 AM, chenzero wrote:
Hello,
I have following code,
in gcc 4.8.4, the code can NOT compile, because of an error:
error: need ‘typename’ before ‘std::map::iterator’ because
‘std::map’ is a dependent scope
however, I can compile the same code in other C++ compiler(borland c++),