Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Autocompletion for lambda auto argument(Autocompletion not working)
Autocompletion for lambda auto argument [message #1805760] Tue, 23 April 2019 09:44
ALLISTER SANCHEZ is currently offline ALLISTER SANCHEZFriend
Messages: 1
Registered: April 2019
Junior Member
Hi,

I'm using Eclipse 2019-03 (although I've seen the same problem in previous versions) and I have a problem with this kind of code:

std::vector<ObjectA> aArray;
std::vector<ObjectB> bArray;
std::transform(
    aArray.cbegin(),
    aArray.cend(),
    std::back_inserter(bArray),
    [](const auto& aObject) {
        return ObjectB{
            // Try to do autocomplete here:
            aObject.    // autocomplete menu does not show   
        };
    }
);


On the other hand, replacing auto by ObjectA works.
    [](const ObjectA& aObject) {
        return ObjectB{
            // Try to do autocomplete here:
            aObject.    // autocomplete menu SHOWS!
        };
    }

Could someone tell me if there's a quick fix for this?

Cheers,
Allister
Previous Topic:ID item in CDT Add New Software
Next Topic:How To Install CDT 9.5.5
Goto Forum:
  


Current Time: Thu Apr 25 12:56:07 GMT 2024

Powered by FUDForum. Page generated in 0.24576 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top