News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Autocomplete always assume `using namespace std`??

Started by EuphoricCatface, August 04, 2020, 04:15:22 AM

Previous topic - Next topic

EuphoricCatface

Linux Mint 20 Cinnamon, Code::Blocks 20.03

This is the only grief I have with C::B at the time
At least out of the box, it always works like I've written `using namespace std` - which is actually recently discouraged.

What autocomplete can show:

  • std
  • cout
  • endl
What autocomplete can NOT show:

  • std::cout
  • std::endl

I have made a post about this more than a year ago - http://forums.next.codeblocks.org/index.php/topic,23237 and since no one provided me a workaround, I'm assuming there's none.

What's the logic behind this behavior? Also, by any chance, is there actually a workaround?

BlueHazzard

Our C++ parser is sadly not up to date and probably can not parse new > c++11 constructs.... So i do not think there is a workaround...

EuphoricCatface

Aww that's so sad. I remember liking C::B quite a lot, years ago :(