if(embedStylesPrinted != true) {document.write('');}var embedStylesPrinted = true;var content = '
Removed all header references.
cpp
//scrapyard.cpp
 
///////////////////////////////////////
template <class A>
class PretendContainer
{
public:
typedef int InternalType;
};
///////////////////////////////////////
template <class AtomicType>
class Bar
{
public:
 
void foobar()
{
// Likes this just fine.
PretendContainer<AtomicType> aThing;
// Yacks on this.
PretendContainer<AtomicType>::InternalType i;
}
};
///////////////////////////////////////
int main( int argc, char **argv )
{
return 0;
}
///////////////////////////////////////
// Command line and error:
// $ g++-4 -Wall -pedantic scrapyard.cpp
 
// scrapyard.cpp: In member function 'void Bar<AtomicType>::foobar()':
// scrapyard.cpp:21: error: expected `;' before 'i'
 
';document.write(content);