Re: string v.s. basic_string
- From: "Larry Smith" <no_spam@xxxxxxxxxxx>
- Date: Tue, 20 Nov 2007 12:12:06 -0500
typedef tstring std::basic_string<TCHAR>;Of ocourse:
typedef std::basic_string<TCHAR> tstring;
or better:
typedef std::basic_string<TCHAR> _tstring;
You shouldn't start anything with an underscore in light of 17.4.3.1.2 of
the standard (and MSFT's own guidelines regarding identifier names at "file
scope"). It's also jarring on the eyes IMHO. The use of "tstring" also isn't
the issue it once was. Unicode is now pervasive enough that most can just
rely on "wchar_t" instead. I still find it hard to do that personally
however though the "_T()" macro and cousins has always been an eyesore.
.
- Follow-Ups:
- Re: string v.s. basic_string
- From: Jochen Kalmbach [MVP]
- Re: string v.s. basic_string
- References:
- Re: string v.s. basic_string
- From: Jochen Kalmbach [MVP]
- Re: string v.s. basic_string
- From: Jochen Kalmbach [MVP]
- Re: string v.s. basic_string
- Prev by Date: Re: string v.s. basic_string
- Next by Date: Re: string v.s. basic_string
- Previous by thread: Re: string v.s. basic_string
- Next by thread: Re: string v.s. basic_string
- Index(es):
Relevant Pages
|