News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

failing code completion

Started by killerbot, April 08, 2013, 08:32:09 PM

Previous topic - Next topic

killerbot

The following code fails to complete on the var foo (press the '.' , nothing happens).
Using the uniform init syntax of C++11 :



#include <iostream>
#include <utility>
#include <string>

namespace
{
void helloPair()
{
std::pair<std::string, int> foo{"front", 242};
std::cout << foo.first << std::endl;
std::cout << foo.second << std::endl;
}


}

int main()
{
helloPair();
}

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

killerbot

does that matter.

Something for our CC gurus to improve on.