From 1ff377d159922201f3b0d128b07d365bf239c8bb Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 14 Sep 2014 17:47:07 +0200 Subject: [PATCH] Don't use incomplete template type Smob2 in Unpure_pure_container Some compilers complain, and I think they might have a point. --- lily/include/unpure-pure-container.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 *); }; -- 2.39.2