M
Madhu Gopinathan
Hi,
I am getting the following Internal compiler error
: fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 2701)
as detailed below in VC 7.0 while using compiling template classes
The code is as following
////////////////////////////////////////
//IncludeFile1.h
enum Values
{
kValue1 = 1,
kValue2
};
template<class T, Values value>
class TempClass
{
/// Operator overloads and constructors
};
template<class T, Values value>
class SmartTempClass : SmartPointer<TempClass<T, value> >
{
///Operator overloads
}
#include "IncludeFile1.inl"
//////////////////////////////////////
//IncludeFile1.inl
Non-inline definitions for TempClass and SmartTempClass
/////////////////////////////////
// IncludeFile2.h
#include "IncludeFile1.h"
class Consumer
{
public:
Consumer (const SmartTempClass<int, kValue1> & rkClassValue)
<<----- The error occurs here........
{ //something here }
};
What could be the error here? If I move the template code (for TempClass
and SmartTempClass) inline, the error does not occur.
Thanks,
Madhu
I am getting the following Internal compiler error
: fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 2701)
as detailed below in VC 7.0 while using compiling template classes
The code is as following
////////////////////////////////////////
//IncludeFile1.h
enum Values
{
kValue1 = 1,
kValue2
};
template<class T, Values value>
class TempClass
{
/// Operator overloads and constructors
};
template<class T, Values value>
class SmartTempClass : SmartPointer<TempClass<T, value> >
{
///Operator overloads
}
#include "IncludeFile1.inl"
//////////////////////////////////////
//IncludeFile1.inl
Non-inline definitions for TempClass and SmartTempClass
/////////////////////////////////
// IncludeFile2.h
#include "IncludeFile1.h"
class Consumer
{
public:
Consumer (const SmartTempClass<int, kValue1> & rkClassValue)
<<----- The error occurs here........
{ //something here }
};
What could be the error here? If I move the template code (for TempClass
and SmartTempClass) inline, the error does not occur.
Thanks,
Madhu