changeset 12618:224e57d04d01 octave-forge

fix for octave-4.0.0-rc4 (OCTAVE_MAJOR_VERSION>=4) alike to https://savannah.gnu.org/bugs/index.php?45136 (octave_sparsersb_mtx::print() is not anymore const in octave-4).
author michelemartone
date Tue, 19 May 2015 07:54:43 +0000
parents 54713b3cb49d
children a32bd500938b
files main/sparsersb/src/sparsersb.cc
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/sparsersb/src/sparsersb.cc	Wed May 13 09:34:14 2015 +0000
+++ b/main/sparsersb/src/sparsersb.cc	Tue May 19 07:54:43 2015 +0000
@@ -1,5 +1,5 @@
 /*
- Copyright (C) 2011-2014   Michele Martone   <michelemartone _AT_ users.sourceforge.net>
+ Copyright (C) 2011-2015   Michele Martone   <michelemartone _AT_ users.sourceforge.net>
 
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
@@ -911,7 +911,11 @@
 			return ss;
 		}
 
+#if defined(OCTAVE_MAJOR_VERSION) && (OCTAVE_MAJOR_VERSION>=4)
+		void print (std::ostream& os, bool pr_as_read_syntax = false)
+#else  /* OCTAVE_MAJOR_VERSION */
 		void print (std::ostream& os, bool pr_as_read_syntax = false) const
+#endif /* OCTAVE_MAJOR_VERSION */
 		{
 			RSBOI_FIXME("what to do with pr_as_read_syntax ?");
 			struct rsboi_coo_matrix_t rcm;