Mercurial > forge
changeset 12666:fc325d64210b octave-forge
pq_connection.h: Additional non-const octave_pq_connection::print ().
author | i7tiol |
---|---|
date | Wed, 08 Jul 2015 13:58:00 +0000 |
parents | 393b940d7ee2 |
children | 1411b4cf3c81 |
files | main/database/src/pq_connection.h |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main/database/src/pq_connection.h Wed Jul 08 13:54:27 2015 +0000 +++ b/main/database/src/pq_connection.h Wed Jul 08 13:58:00 2015 +0000 @@ -116,6 +116,16 @@ { print_raw (os); } + // Octave changeset bcd71a2531d3 (Jan 31st 2014) made + // octave_base_value::print() non-const, after that this virtual + // function is not re-defined by the above print() function. Having + // both const and non-const print() here seems to work both with + // Octave < and >= bcd71a2531d3 (print() is only called over the + // parent class virtual function). + void print (std::ostream& os, bool pr_as_read_syntax = false) + { + print_raw (os); + } bool print_as_scalar (void) const { return true; }