User forums > Using Code::Blocks
"Complete code" do not support "XXX const& "
MortenMacFly:
--- Quote from: ollydbg on May 02, 2013, 04:02:30 pm ---Any ideas?
--- End quote ---
Hmm... this might work, indeed. I would need to check the use of m_PointerOrRef though... I don't recall if it really should only be * or &...
ollydbg:
--- Quote from: MortenMacFly on May 02, 2013, 04:04:51 pm ---
--- Quote from: ollydbg on May 02, 2013, 04:02:30 pm ---Any ideas?
--- End quote ---
Hmm... this might work, indeed. I would need to check the use of m_PointerOrRef though... I don't recall if it really should only be * or &...
--- End quote ---
I just edit my previous post, and said:
--- Quote ---Maybe, we can add a member variable like "m_IsConst" of Parserthread class.
--- End quote ---
I mean we can add another member variable to remember whether we have meet a "const" keyword.
MortenMacFly:
--- Quote from: ollydbg on May 02, 2013, 04:09:45 pm ---I mean we can add another member variable to remember whether we have meet a "const" keyword.
--- End quote ---
Even better. :-)
nanyu:
hi all....
This problem still exists......
do we have a solution?
----
ubuntu codeblocks svn9744
nanyu:
struct Msg
{
int a;
int b;
};
void foo_1(const Msg& msg)
{
msg. //<- OK! cc work well
}
void foo_2(Msg const& msg)
{
msg. //<- ?? cc don't work.
}
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version