# HG changeset patch # User Mike Miller # Date 1429304063 25200 # Node ID 0cf104d3371f1d09a71b94ec363eb9244ddf2afb # Parent 23fb65b45d8cd51a281d3a64cabcb3bc873426c9 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. diff --git a/libinterp/octave-value/ov.h b/libinterp/octave-value/ov.h --- a/libinterp/octave-value/ov.h +++ b/libinterp/octave-value/ov.h @@ -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; }