Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
CC no longer working for unique_ptr
killerbot:
Consider the following code in a console app's main.cpp :
--- Code: ---#include <iostream>
#include <memory>
class Test
{
public:
void doSomething();
};
int main()
{
std::unique_ptr<int> foo(new int());
foo.
std::unique_ptr<Test> bar(new Test());
bar->
return 0;
}
--- End code ---
1) When the "." after foo has been typed --> no CC suggestions (at least there should be get/release/...).
This used to work.
2) When the "->" after bar has been typed --> no CC suggestions ( there should be doSomething)
This used to work.
Could this be fixed ?
Tested on rev 7439
oBFusCATed:
Hm, Are you sure this has ever worked?
As far as I know the -> operator overloading is not parsed by the CC.
Loaden:
Make sure use --std=c++0x option?
Works well here.
Jenna:
--- Quote from: Loaden on August 30, 2011, 01:24:44 am ---Make sure use --std=c++0x option?
Works well here.
--- End quote ---
Does not work here (latest trunk on debian 64-bit, with some modifications not related to CC) with or without the option.
ollydbg:
--- Quote from: Loaden on August 30, 2011, 01:24:44 am ---Make sure use --std=c++0x option?
Works well here.
--- End quote ---
@loaden
Did you think CC is respect to the compiler command option?
I don't think so.
I will test the latest trunk.
EDIT:
killerbot's test failed with both --std=c++0x or not.
Navigation
[0] Message Index
[#] Next page
Go to full version