Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rogeriodec on May 14, 2018, 04:37:41 am

Title: Object is not identified when a class argument is between {}
Post by: rogeriodec on May 14, 2018, 04:37:41 am
In the example below, the SFML object 'content' is not being recognized by CB:
   
Code
sf::Sprite content {texture.getTexture()};
That is, it does not appear in the auto-complete lists, though it is compiled normally.

However if the argument is in parentheses, or there is no argument, CB identifies the object correctly.

Code
sf::Sprite content (sf::Texture);

Is this a bug, right?
Title: Re: Object is not identified when a class argument is between {}
Post by: sodev on May 14, 2018, 08:37:01 pm
Sadly C++11 support for CodeCompletion is next to non-existent so it usually breaks when using C++11 features.
Title: Re: Object is not identified when a class argument is between {}
Post by: rogeriodec on May 14, 2018, 10:30:53 pm
So, there is no solution for this?