Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8169391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:50:07+00:00 2026-06-06T20:50:07+00:00

After following the steps in this post I managed to make Eclipse (Indigo) recognize

  • 0

After following the steps in this post I managed to make Eclipse (Indigo) recognize unique_ptr (and other C++11 new stuff). The problem is that operator-> for unique_ptr seems not to be supported in Eclipse. Here you have an example:

class Foo { void bar() { /* ... */ } };

std::unique_ptr<Foo> foo;
(*foo).bar(); // 1
foo->bar();   // 2

Case 1 works as expected: there is no error and autocompletion works. For case 2, however, Eclipse marks the statement with an error (“Method ‘bar’ could not be resolved”), plus autocompletion from foo-> does not work.

Most interestingly, I do not have any problems with std::shared_ptr. It only happens for std::unique_ptr.

Has anyone experienced the same problem? Does anyone know a way to fix it?

EDIT: just for clarifying purposes, the compilation process goes fine for the code snippet shown above. So, the problem is not in the compiler itself, but on Eclipse.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:50:09+00:00Added an answer on June 6, 2026 at 8:50 pm

    I have finally found a bug report in CDT describing the very same problem that I am suffering. So far, there is not a real fix for the problem but there is a workaround explained in that bug report:

    Yes, GCC 4.5 is the latest GCC version whose library headers can be accurately
    indexed by CDT. The main reason for failing to index 4.6 headers is CDT’s lack
    of support for ‘constexpr’ and ‘nullptr’, which are used extensively in the 4.6
    headers (any chance of that being implemented for Juno, by the way?).

    I have worked around this by having both GCC 4.5 and 4.6 installed on my
    system, and pointing CDT to 4.5’s headers (by setting the compiler invocation
    command to ‘g++-4.5’ in Discovery Options) while actually compiling with 4.6.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After following the steps outline in this Fluent NHibernate tutorial I am stuck on
After following this MVC 4 tutorial series I was trying some of the stuff
After following these steps: http://developers.facebook.com/docs/mobile/android/build/ I find that everything goes well, but when I
I am using following steps to update code on server after login to server:
I am trying to make a JQGrid for a simple table. After following through
I'm using this 3rd party report generating software. It has the following steps: 1)
I built a sample application for dcom by following the steps given in this
I am following steps described in this page to Build a Windows Zotero Standalone
After following the RoR getting started tutorial, I added another model as: $ rails
After following the great advice given in a thread about service beans I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.