Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: killerbot on April 08, 2013, 08:32:09 pm

Title: failing code completion
Post by: killerbot 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
#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();
}
Title: Re: falining code completion
Post by: oBFusCATed on April 08, 2013, 08:40:23 pm
Are you surprised?
Title: Re: failing code completion
Post by: killerbot on April 08, 2013, 08:43:02 pm
does that matter.

Something for our CC gurus to improve on.