P
P
Pavel Kaptur2016-07-06 11:36:01
C++ / C#
Pavel Kaptur, 2016-07-06 11:36:01

What is the correct way to create a local copy of std::wstring?

Hello everyone, I'm confused about the obvious thing and I ask you to tell me, in the function, as a parameter, a pointer to a string comes. std::wstring*, where I need to attach different endings to it, for this I need to create a local copy of std::wstring. How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2016-07-06
@drem1lin

void doSomething(std::wstring* s)
{
   std::wstring temp = *s;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question