changeset 20122:0cf104d3371f

ov.h: friend declaration specifying a default argument must be a definition (bug #44812). * ov.h: friend declaration specifying a default argument must be a definition.
author Mike Miller <mtmiller@octave.org>
date Fri, 17 Apr 2015 13:54:23 -0700
parents 23fb65b45d8c
children 1663b82bd009
files libinterp/octave-value/ov.h
diffstat 1 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov.h	Fri Apr 17 19:55:24 2015 +0200
+++ b/libinterp/octave-value/ov.h	Fri Apr 17 13:54:23 2015 -0700
@@ -54,7 +54,16 @@
 
 #include "ov-base.h"
 
-// Constants.
+// Forward declarations of friend functions that have default arguments.
+
+OCTINTERP_API octave_value do_colon_op (const octave_value& base,
+                                        const octave_value& limit,
+                                        bool is_for_cmd_expr = false);
+
+OCTINTERP_API octave_value do_colon_op (const octave_value& base,
+                                        const octave_value& increment,
+                                        const octave_value& limit,
+                                        bool is_for_cmd_expr = false);
 
 class
 OCTINTERP_API
@@ -1063,7 +1072,7 @@
 
   friend OCTINTERP_API octave_value do_colon_op (const octave_value& base,
                                                  const octave_value& limit,
-                                                 bool is_for_cmd_expr = false)
+                                                 bool is_for_cmd_expr)
   {
     return do_colon_op (base, octave_value (), limit, is_for_cmd_expr);
   }
@@ -1071,7 +1080,7 @@
   friend OCTINTERP_API octave_value do_colon_op (const octave_value& base,
                                                  const octave_value& increment,
                                                  const octave_value& limit,
-                                                 bool is_for_cmd_expr = false);
+                                                 bool is_for_cmd_expr);
 
   const octave_base_value& get_rep (void) const { return *rep; }