Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: Loaden on June 03, 2009, 07:53:16 am

Title: About CC: typedef problem
Post by: Loaden on June 03, 2009, 07:53:16 am
Code
#ifndef _ATL_CSTRING_NO_CRT
typedef CStringT< wchar_t, StrTraitATL< wchar_t, ChTraitsCRT< wchar_t > > > CAtlStringW;
typedef CStringT< char, StrTraitATL< char, ChTraitsCRT< char > > > CAtlStringA;
typedef CStringT< TCHAR, StrTraitATL< TCHAR, ChTraitsCRT< TCHAR > > > CAtlString;
#else  // _ATL_CSTRING_NO_CRT
typedef CStringT< wchar_t, StrTraitATL< wchar_t > > CAtlStringW;
typedef CStringT< char, StrTraitATL< char > > CAtlStringA;
typedef CStringT< TCHAR, StrTraitATL< TCHAR > > CAtlString;
#endif  // _ATL_CSTRING_NO_CRT

#ifndef _AFX
typedef CAtlStringW CStringW;
typedef CAtlStringA CStringA;
typedef CAtlString CString;
#endif

typedef CAtlString CString;
Not work!
but CAtlString is ok!
Title: Re: About CC: typedef problem
Post by: ollydbg on June 03, 2009, 08:05:30 am
What do you mean by "not work"? :D
Please give a more specific details.
Title: Re: About CC: typedef problem
Post by: Loaden on June 03, 2009, 12:48:05 pm
What do you mean by "not work"? :D
Please give a more specific details.
CC can't show the parser word. nothing!
Title: Re: About CC: typedef problem
Post by: ollydbg on June 04, 2009, 05:54:49 am
The complex "template" typedef before
Code
typedef CAtlStringW CStringW;
typedef CAtlStringA CStringA;
typedef CAtlString CString;
may cause the problem.

The parser may failed parsing these template declaration.