comparison main/database/src/pq_connection.h @ 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 52ca082757c2
comparison
equal deleted inserted replaced
12665:393b940d7ee2 12666:fc325d64210b
114 114
115 void print (std::ostream& os, bool pr_as_read_syntax = false) const 115 void print (std::ostream& os, bool pr_as_read_syntax = false) const
116 { 116 {
117 print_raw (os); 117 print_raw (os);
118 } 118 }
119 // Octave changeset bcd71a2531d3 (Jan 31st 2014) made
120 // octave_base_value::print() non-const, after that this virtual
121 // function is not re-defined by the above print() function. Having
122 // both const and non-const print() here seems to work both with
123 // Octave < and >= bcd71a2531d3 (print() is only called over the
124 // parent class virtual function).
125 void print (std::ostream& os, bool pr_as_read_syntax = false)
126 {
127 print_raw (os);
128 }
119 129
120 bool print_as_scalar (void) const { return true; } 130 bool print_as_scalar (void) const { return true; }
121 131
122 private: 132 private:
123 133