Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

Problem with initializing auto variables

$
0
0
I am new to VC++ 2012. I have this code snippet.

Code:

auto it = query_map.find(U("callback"));
The problem is right under the dot there is a red line the error is

Quote:

Error 1 error C2664: 'std::_Tree_iterator<_Mytree> std::_Tree<_Traits>::find(const http::uri::encoded_string &)' : cannot convert parameter 1 from 'const wchar_t [9]' to 'const http::uri::encoded_string &' d:\maverick\projects\strikeforce\src\server\server\server.cpp 26
Can someone tell me a solution to this error?

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images