List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:October 9 2004 6:08pm
Subject:Re: compiling mysql++ examples (fwd)
View as plain text  
On Fri, Oct 08, 2004 at 09:23:20PM -0400, Don Thompson wrote:
> /usr/local/mysql++-1.7.15/sqlplusint/sql_query1.hh:178: error: passing `const
>    CLdata' as `this' argument of `std::string& CLdata::value_list()' discards
>    qualifiers
> /usr/local/mysql++-1.7.15/sqlplusint/sql_query1.hh:178: error: passing `const
>    CLdata' as `this' argument of `std::string& CLdata::field_list()' discards
>    qualifiers
> /usr/local/mysql++-1.7.15/sqlplusint/sql_query1.hh:178: error: passing `const
>    CLdata' as `this' argument of `SQLString& CLdata::table()' discards
>    qualifiers
> make[3]: *** [cudb.o] Error 1
> 
> Why does is it complaining about 'discards qualifiers'?

value_list(), field_list(), and table() all have to be const member functions.

	std::string& value_list() const;
	std::string& field_list() const;
	std::string& table() const;

- Chris

Thread
compiling mysql++ examples (fwd)Enrique Farfan5 Oct
  • Re: compiling mysql++ examples (fwd)Warren Young5 Oct
  • Re: compiling mysql++ examples (fwd)Don Thompson8 Oct
    • Re: compiling mysql++ examples (fwd)Warren Young8 Oct
  • Re: compiling mysql++ examples (fwd)Don Thompson8 Oct
    • Re: compiling mysql++ examples (fwd)Warren Young8 Oct
      • Re: compiling mysql++ examples (fwd)Don Thompson9 Oct
        • Re: compiling mysql++ examples (fwd)Chris Frey9 Oct