Vinzenz 'evilissimo' Feenstra wrote:
> We talked about it this night and decided not to give up the va_args.
> Instead we're using a struct now which helps us to identify the value.
> So we can now use SQLITE_STATIC as argument for sqlite3_bind_text and
> sqlite3_bind_blob and can figure out in the methode database::fetch what
> kind of parameter was given.
> 
> The usage for now is:
> std::string query_ = "SELECT foo FROM bar where id = ?";
> execute(query(query_), text(id) );
> 
> or
> execute( "SELECT foo FROM bar where id = ?", text(id) );
> 
> There are to functions text() and blob()

I strongly feel that varargs is a bad choice for C++ programs, using
your proposed % syntax is much cleaner (as with L() and boost::format).

   Christof

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to