List:MySQL++« Previous MessageNext Message »
From:Yingbo Miao Date:August 4 2005 3:26pm
Subject:Re: Return string directly from the class ROW
View as plain text  
Oh, sorry. I copied wrong code from row.h. It should be:

const std::string & raw_string ( int i ) const { 
    return data.at(i); 
}


On 8/4/05, Pål Brattberg <pal@stripped> wrote:
> Yingbo Miao wrote:
>  > I wonder whether it is a good way to return the "raw string" directly
> from the class ROW. For example, one line line can be added to the row.h
> 
> How about the following, already present i row.h?
> 
> // Return the value of a field given its index, in raw form.
> const char* raw_data(int i) const
> {
>          return data_[i].data();
> }
> 
> What are you missing in this?
> 
> / pål
> 
> 
> 
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1
> 
>
Thread
Return string directly from the class ROWYingbo Miao4 Aug
  • Re: Return string directly from the class ROWPål Brattberg4 Aug
    • Re: Return string directly from the class ROWYingbo Miao4 Aug
      • Re: Return string directly from the class ROWYingbo Miao4 Aug
  • Re: Return string directly from the class ROWWarren Young12 Jan