Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Which rules do the various C++ implementations apply for name resolution in templates?

0
Posted

Which rules do the various C++ implementations apply for name resolution in templates?

0

I have divided implementations into three categories: CFront, those that resolve all names at the point of instantiation, like CFront did; intermediate, those that parse templates more fully, resolving some names at the point of definition and requiring disambiguation of others; and standard, those that use the standard rules. Note that there is a lot of variation among the “intermediate” implementations. Implementation Versions and options Name lookup rules Comeau C++ 4.x, CFront mode CFront 4.x, relaxed mode; 4.0-4.2.43, strict mode intermediate 4.2.44-4.3.3, strict mode standard GNU C++ (g++) 2.8-3.3 intermediate 3.4-4.1 standard Metrowerks CodeWarrior 8-9, default intermediate (?) 8-9, -iso-templates standard Microsoft Visual C++ 6.0 CFront 7.0-8.0 (VS.NET 2002-2005) intermediate (This table is acknowledged to be incomplete and possibly incorrect in some details. Let me know if you have more information.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.