All pastes #929086 Raw Edit

stefys

public cpp v1 · immutable
·published 2008-03-05 15:02 UTC
rendered paste body
class SQLite_exception {	int errno;	std::string errmsg;public:        /* Errors I get here:`_errno' cannot be used as a functionanachronistic old style base class initializerunnamed initializer for `SQLite_exception', which has no base classesparse error before `;' token        */	SQLite_exception(int _errno, const std::string &_errmsg) : errno(_errno), errmsg(_errmsg) { }	friend std::ostream &operator<<(std::ostream &out, const SQLite_exception &exception)	{ out << exception.errmsg; if (errno) out << " [" << errno << "]"; out << std::endl; return out; }};