Re: string v.s. basic_string

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks David!


regards,
George

"David Wilkinson" wrote:

George wrote:
Hello everyone,


I would like to learn some experiences about when should we use
std::basic_string and when should we use std::string?

I learned some Hello World level samples and now want to listen to your
practical experiences. :-)

George:

std::string is just a typedef

namespace std
{
typedef basic_string<char> string;
typedef std::basic_string<wchar_t) wstring;
}

Normally you just use std::string or std::wstring.

--
David Wilkinson
Visual C++ MVP

.



Relevant Pages

  • Re: Combine or Replace every day first thing
    ... to jump out at me as the cause but I was doing a lot of other stuff at the ... hasn't happened for the two "start of day experiences" since I wrote, ... I've bookmarked your page or future reference. ... Regards, Stephen ...
    (microsoft.public.pocketpc.activesync)
  • Receiving duplicate email from the list
    ... sometimes get duplicate email from the FC list (the message id's are ... Did somebody make similar experiences? ... Best regards / Mit freundlichen Gruessen ... Joachim Backes ...
    (Fedora)
  • Re: brand new truck issues.........
    ... subject of brand new trucks being delivered with numerous defects from ...
    (misc.transport.trucking)
  • What tapes do you use - DLT Tape Drive on Dell Power Edge 2600
    ... Pls. post any experiences you have. ... Regards ... Prev by Date: ...
    (microsoft.public.windows.server.general)
  • Recording e-guitar
    ... - What are your experiences? ... Best Regards, Torsten ... No Windows, no Gates - but Apache inside! ...
    (alt.os.linux.suse)