Article ID: 930198 - Last Review: April 13, 2007 - Revision: 2.4
FIX: Certain template code does not compile, and error C2244 occurs after you install Visual Studio 2005 Service Pack 1
After you install Microsoft Visual Studio 2005 Service Pack 1 (SP1), certain template code does not compile. Additionally, error C2244 occurs.
Hotfix information For more information about the MSDN Code Gallery, visit the following Microsoft Web site:
Prerequisites You must install Visual Studio 2005 SP1 before you apply this hotfix.
Restart requirement You do not have to restart the computer after you apply this hotfix.
Hotfix replacement information This hotfix does not replace any other hotfixes.
File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the
Time Zone tab in the
Date and Time item in Control Panel.
Visual Studio 2005, 32-bit versions Collapse this table Expand this table
File name File version File size Date Time C1.dll 14.0.50727.789 630,784 09-Jan-2007 19:37 C1.dll 14.0.50727.789 950,784 10-Jan-2007 00:53 C1.dll 14.0.50727.789 1,543,168 10-Jan-2007 00:52 C1.dll 14.1.60511.0 528,384 10-Jan-2007 08:22 C1.dll 14.1.60511.0 528,384 10-Jan-2007 08:22 C1.dll 14.1.60511.0 524,288 10-Jan-2007 08:22 C1.dll 14.0.50727.789 581,632 10-Jan-2007 00:52 C1.dll 14.0.50727.789 589,824 10-Jan-2007 00:53 C1ast.dll 14.0.50727.789 778,240 09-Jan-2007 19:19 C1xx.dll 14.0.50727.789 3,706,368 10-Jan-2007 00:53 C1xx.dll 14.0.50727.789 6,529,536 10-Jan-2007 00:52 C1xx.dll 14.1.60511.0 2,146,304 10-Jan-2007 08:22 C1xx.dll 14.1.60511.0 2,146,304 10-Jan-2007 08:22 C1xx.dll 14.1.60511.0 2,138,112 10-Jan-2007 08:22 C1xx.dll 14.0.50727.789 2,285,568 09-Jan-2007 19:38 C1xx.dll 14.0.50727.789 2,183,168 10-Jan-2007 00:52 C1xx.dll 14.0.50727.789 2,191,360 10-Jan-2007 00:53 C1xxast.dll 14.0.50727.789 2,498,560 09-Jan-2007 19:19 C2.dll 14.0.50727.789 2,265,088 09-Jan-2007 19:24 C2.dll 14.0.50727.789 3,596,288 10-Jan-2007 00:53 C2.dll 14.0.50727.789 7,168,000 10-Jan-2007 00:52 C2.dll 14.1.60511.1 1,298,432 10-Jan-2007 08:22 C2.dll 14.1.60511.0 1,507,328 10-Jan-2007 08:22 C2.dll 14.1.60511.0 1,261,568 10-Jan-2007 08:22 C2.dll 14.0.50727.789 2,486,272 10-Jan-2007 00:52 C2.dll 14.0.50727.789 2,199,552 10-Jan-2007 00:53 Pgodb80.dll 8.0.50727.789 61,440 09-Jan-2007 19:20 Pgodb80.dll 8.0.50727.789 70,656 10-Jan-2007 00:53 Pgodb80.dll 8.0.50727.789 130,048 10-Jan-2007 00:52 Pgodb80.dll 8.0.50727.789 45,056 09-Jan-2007 19:21 Pgodb80.dll 8.0.50727.789 38,400 10-Jan-2007 00:53 Pgodb80.dll 8.0.50727.789 81,408 10-Jan-2007 00:52
Visual Studio 2005, Itanium-based versions Collapse this table Expand this table
File name File version File size Date Time Platform C1.dll 14.0.50727.789 1,543,168 10-Jan-2007 02:06 IA-64 C1xx.dll 14.0.50727.789 6,529,536 10-Jan-2007 02:06 IA-64 C2.dll 14.0.50727.789 7,168,000 10-Jan-2007 02:05 IA-64 Pgodb80.dll 8.0.50727.789 130,048 10-Jan-2007 02:00 IA-64 Pgort80.dll 8.0.50727.789 81,408 10-Jan-2007 02:00 IA-64
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates
For more information about Visual Studio 2005 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:
928957
(http://support.microsoft.com/kb/928957/
)
Visual Studio 2005 Service Pack 1 release notes
Steps to reproduce the problem Install Visual Studio 2005 SP1. Start Visual Studio 2005. On the File menu, click New , and then click Project . Click Visual C++ , click Class Library , type MyTemplates in the Name box, and then click OK .
In Solution Explorer , right-click MyTemplates.cpp , and then click Open . In the MyTemplates.cpp file, add the following lines of code after the two #include statements. template <class T>
class A
{
public:
typedef int N_A;
};
template <class T>
class B : public A<T>
{
public:
typename A<T>::N_A test();
};
template <class T>
typename A<T>::N_A B<T>::test()
{
return 0;
}
On the Build menu, click Rebuild Solution . APPLIES TO Microsoft Visual Studio 2005 Standard Edition Microsoft Visual Studio 2005 Professional Edition Microsoft Visual Studio 2005 Express Edition kbvs2005postsp1fix kbfix kbbug kbqfe kbpubtypekc KB930198
Provide feedback on this information
Did this information solve your problem?
Was this information relevant?
What can we do to improve this information?
To protect your privacy, do not include contact information in your feedback.
Thank you! Your feedback is used to help us improve our support content. For more assistance options, please visit the
Help and Support Home Page .