From: David Kastrup Date: Sun, 14 Sep 2014 15:47:07 +0000 (+0200) Subject: Don't use incomplete template type Smob2 in Unpure_pure_container X-Git-Tag: release/2.19.14-1^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1ff377d159922201f3b0d128b07d365bf239c8bb;p=lilypond.git Don't use incomplete template type Smob2 in Unpure_pure_container Some compilers complain, and I think they might have a point. --- diff --git a/lily/include/unpure-pure-container.hh b/lily/include/unpure-pure-container.hh index 5db80adec1..8e4733ad16 100644 --- a/lily/include/unpure-pure-container.hh +++ b/lily/include/unpure-pure-container.hh @@ -36,8 +36,8 @@ public: static SCM make_smob (SCM a, SCM b = SCM_UNDEFINED) { if (SCM_UNBNDP (b) && !ly_is_procedure (a)) - return Smob2::make_smob (a, a); - return Smob2::make_smob (a, b); + return Smob2::make_smob (a, a); + return Smob2::make_smob (a, b); } static int print_smob (SCM, SCM, scm_print_state *); };