List:Commits« Previous MessageNext Message »
From:Jorgen Loland Date:April 6 2011 9:09am
Subject:Re: bzr commit into mysql-trunk branch (jorgen.loland:3285)
View as plain text  
On 04/05/2011 11:19 AM, Guilhem Bichot wrote:
>> + SEL_ARG *keypart_root,
>
> can this one be a const pointer?

It will not be modified, but unfortunately it cannot be not declared const.

Declaring it const would require SEL_ARG::first() to be const as well, in turn 
requiring next_arg to be const * const. Because nothing is encapsulated, first() 
cannot return a const * const.

If you have a trick up your sleeve I'll be happy to implement it.

-- 
Jørgen Løland | Senior Software Engineer | +47 73842138
Oracle MySQL
Trondheim, Norway
Thread
bzr commit into mysql-trunk branch (jorgen.loland:3285) Jorgen Loland24 Mar
  • Re: bzr commit into mysql-trunk branch (jorgen.loland:3285)Guilhem Bichot5 Apr
    • Re: bzr commit into mysql-trunk branch (jorgen.loland:3285)Jorgen Loland6 Apr
      • Re: bzr commit into mysql-trunk branch (jorgen.loland:3285)Guilhem Bichot7 Apr
        • Re: bzr commit into mysql-trunk branch (jorgen.loland:3285)Jorgen Loland7 Apr