BUG: Debugger Cannot Distinguish Between Template Functions and Overloaded Functions with Same Names (314280)
The information in this article applies to:
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q314280 SYMPTOMS If a template function has the same name and scope as a
non-template (overloaded) function, the Microsoft Visual Studio .NET debugger
cannot distinguish between the functions when the debugger sets a breakpoint.
RESOLUTION If you can choose a specialized template, do not use a
non-template function overload. For example, use the definition in the
following code:
template < > double templatefunc(double var){ ... }
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 5/28/2003 |
---|
Keywords: | kbBug kbDebug kbNativeAttributes kbnofix KB314280 |
---|
|