SGI STL Compile problem 
Author Message
 SGI STL Compile problem

When use SGI STL compile following lines, compiler generate error. "error
C2061: syntax error : identifier 'T'"
When use Microsoft STL compile following lines, it works fine.
Why? Thanks for any suggestion.

// code
#pragma warning(push, 3)
#include <string>
#include <vector>
#pragma warning(pop)

template <typename T>
class CStringT : public std::basic_string<T>



Fri, 10 Oct 2003 11:27:37 GMT  
 SGI STL Compile problem
When use SGI STL compile following lines, compiler generate error.
When use Microsoft STL compile following lines, it works fine.
Why? Thanks for any suggestion.

// code
#pragma warning(push, 3)
#include <string>
#include <vector>
#pragma warning(pop)

template <typename T>        //error C2061: syntax error : identifier 'T'
class CStringT : public std::basic_string<T>

Quote:

> When use SGI STL compile following lines, compiler generate error. "error
> C2061: syntax error : identifier 'T'"
> When use Microsoft STL compile following lines, it works fine.
> Why? Thanks for any suggestion.

> // code
> #pragma warning(push, 3)
> #include <string>
> #include <vector>
> #pragma warning(pop)

> template <typename T>
> class CStringT : public std::basic_string<T>



Fri, 10 Oct 2003 12:42:59 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Conflict between VC 7 STL and SGI STL - how to resolve

2. ATL conflict between VC 7 STL and SGI STL - how to resolve

3. Porting code from SGI STL to MSVC STL

4. SGI-STL or STL of VC++

5. VC++ STL v/s SGI STL Performance ???

6. Linking problems with Intel compiler and SGI STL/iostreams

7. problem with sgi STL, or me?

8. Problems with SGI-STL 3.12?

9. How to use MSVC STL with a library compiled with SGI STL..

10. Free C++ SIG:Austern,SGI STL;Feb 8,Sat

11. VC++ and STL (SGI Implementation)

12. SGI STL and VC++ 5.0

 

 
Powered by phpBB® Forum Software