aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-12-06 13:43:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-12-06 13:43:21 +0200
commit52f71a60d6b683a283b0b5ef3a64e29a50f61a57 (patch)
treebc0121bc66de88bc78ad374499e5de6d273ea19a
parent04ede430b482634eca95482a9985d7f2b398370a (diff)
Override second version of tracer::execute() to suppress Sun CC warning1.7.0
-rw-r--r--odb/tracer.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/tracer.cxx b/odb/tracer.cxx
index aa33822..03cabec 100644
--- a/odb/tracer.cxx
+++ b/odb/tracer.cxx
@@ -45,6 +45,11 @@ namespace odb
{
virtual void
execute (connection&, const char* statement);
+
+ // Override the other version to get rid of a Sun CC warning.
+ //
+ virtual void
+ execute (connection&, const statement&);
};
void stderr_tracer_type::
@@ -53,6 +58,12 @@ namespace odb
cerr << s << endl;
}
+ void stderr_tracer_type::
+ execute (connection& c, const statement& s)
+ {
+ execute (c, s.text ());
+ }
+
static stderr_tracer_type stderr_tracer_;
tracer& stderr_tracer = stderr_tracer_;
}