Author Topic: Autocomplete always assume `using namespace std`??  (Read 2786 times)

Offline EuphoricCatface

  • Single posting newcomer
  • *
  • Posts: 4
Autocomplete always assume `using namespace std`??
« on: August 04, 2020, 04:15:22 am »
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.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?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Autocomplete always assume `using namespace std`??
« Reply #1 on: August 04, 2020, 08:04:24 pm »
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...

Offline EuphoricCatface

  • Single posting newcomer
  • *
  • Posts: 4
Re: Autocomplete always assume `using namespace std`??
« Reply #2 on: August 05, 2020, 08:33:21 am »
Aww that's so sad. I remember liking C::B quite a lot, years ago :(