Author Topic: beta8: c++ autocomplete with vector isn't working  (Read 5035 times)

Russ

  • Community Member
  • Posts: 56
  • Hero Points: 3
beta8: c++ autocomplete with vector isn't working
« on: June 16, 2013, 01:07:18 PM »
Seems all right in windows with MSVC10 but isn't working in Ubuntu 13.04 so it's probably something to do with gcc 4.7

Dennis

  • Senior Community Member
  • Posts: 3965
  • Hero Points: 517
Re: beta8: c++ autocomplete with vector isn't working
« Reply #1 on: June 20, 2013, 04:09:31 PM »
Thanks for pointing this out.  My guess is that GCC 4.7 adds new preprocessing we are not pre-configured for.

Russ

  • Community Member
  • Posts: 56
  • Hero Points: 3
Re: beta8: c++ autocomplete with vector isn't working
« Reply #2 on: June 22, 2013, 05:42:45 PM »
Hi Dennis,
It might not be so easy. If I include the same line inside a printf statement then SlickEdit hangs when symbol colouring kicks in :-(
Russ


#include <stdio.h>
#include <vector>

struct mystruct
{
    int where_are_you;
};

int main (int argc, char *argv[])
{
    std::vector<mystruct> myvec;
    printf("%d\n",myvec.back().where_are_you);
    return(0);
}

Russ

  • Community Member
  • Posts: 56
  • Hero Points: 3
Re: beta8: c++ autocomplete with vector isn't working
« Reply #3 on: October 06, 2013, 09:28:40 PM »
I notice this works in Windows with the GCC 4.7 compiler that comes with CodeBlocks. But it still doesn't work for me in Ubuntu 13.04 using 18.0.1.2 with hotfix 5

Any ideas?

Russ

  • Community Member
  • Posts: 56
  • Hero Points: 3
Re: beta8: c++ autocomplete with vector isn't working
« Reply #4 on: October 12, 2013, 10:39:22 PM »
Sigh, it appeared to be working. But that was because I hadn't tagged the Mingw headers  :(

I've undefined __GXX_EXPERIMENTAL_CXX0X__ to use a simpler implementation of vector and then retagged the headers.
But it looks like Slickedit isn't following the rebind template in the allocator because it's autocomplete is "other" which is still a type alias

Russ

  • Community Member
  • Posts: 56
  • Hero Points: 3
Re: beta8: c++ autocomplete with vector isn't working
« Reply #5 on: October 13, 2013, 10:09:04 AM »
Now that I'm paying more attention I also notice substr is missing from std::string autocomplete

Dennis

  • Senior Community Member
  • Posts: 3965
  • Hero Points: 517
Re: beta8: c++ autocomplete with vector isn't working
« Reply #6 on: October 17, 2013, 09:40:27 PM »
I was able to fix this for the next release and I'm putting together a rather large hot fix that should improve STL handling quite a bit.

Mike

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 100
  • Hero Points: 21
Re: beta8: c++ autocomplete with vector isn't working
« Reply #7 on: October 21, 2013, 10:37:39 PM »