List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:December 3 2008 9:46pm
Subject:Re: Problem with Null string type
View as plain text  
Brad Hubbard wrote:
> But I thought this;
> 
>        operator Type&()
>        {
>                if (is_null)
>                        return data = Behavior::null_is();
>                else
>                        return data;
>        }
> in null.h must be how you "safely" get the data member. 

Yes, you're right, that works.  I was confused.  The compiler is 
complaining about operator=(), not operator Type&().

Which one is line 74 in your excerpt?   Can you cut it down some, 
ideally to just one line that shows the problem?
Thread
Problem with Null string typeBrad Hubbard3 Dec
  • Re: Problem with Null string typeWarren Young3 Dec
    • Re: Problem with Null string typeBrad Hubbard3 Dec
      • Re: Problem with Null string typeWarren Young3 Dec
        • Re: Problem with Null string typeBrad Hubbard4 Dec
          • Re: Problem with Null string typeBrad Hubbard4 Dec
          • Re: Problem with Null string typeWarren Young4 Dec
            • Re: Problem with Null string typeBrad Hubbard5 Dec
              • Re: Problem with Null string typeWarren Young5 Dec
                • Re: Problem with Null string typeBrad Hubbard6 Dec
Re: Problem with Null string typeWarren Young6 Dec
  • Re: Problem with Null string typeBrad Hubbard6 Dec
    • execute failedbsingh8 Dec
      • Re: execute failedWarren Young8 Dec