Author Topic: failing code completion  (Read 1953 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5209
failing code completion
« on: April 08, 2013, 08:32:09 pm »
The following code fails to complete on the var foo (press the '.' , nothing happens).
Using the uniform init syntax of C++11 :


Code: [Select]
#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();
}
« Last Edit: April 08, 2013, 08:42:40 pm by killerbot »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12193
    • Travis build status
Re: falining code completion
« Reply #1 on: April 08, 2013, 08:40:23 pm »
Are you surprised?
(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!]

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5209
Re: failing code completion
« Reply #2 on: April 08, 2013, 08:43:02 pm »
does that matter.

Something for our CC gurus to improve on.