User forums > General (but related to Code::Blocks)
failing code completion
(1/1)
killerbot:
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();
}
--- End code ---
oBFusCATed:
Are you surprised?
killerbot:
does that matter.
Something for our CC gurus to improve on.
Navigation
[0] Message Index
Go to full version