Package: lilypond
Version: 2.12.3-7
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch natty

In Ubuntu natty, lilypond fails to build as follows:

  spacing-spanner.cc: In static member function 'static std::vector<Grob*> 
Spacing_spanner::get_columns(Grob*)':
  spacing-spanner.cc:41:35: error: expected primary-expression before '*' token
  spacing-spanner.cc:41:36: error: expected primary-expression before '>' token

C++ is not my first language, but I think that you're not meant to call
template constructors this way; perhaps this worked by chance with
previous versions of G++?  It seems easier to use the declarator syntax
and just create a new variable rather than reusing 'all', since it's
only a local variable and we're about to return anyway.

=== modified file 'lily/spacing-spanner.cc'
--- lily/spacing-spanner.cc     2010-03-04 08:38:33 +0000
+++ lily/spacing-spanner.cc     2010-12-10 14:11:29 +0000
@@ -38,9 +38,8 @@ Spacing_spanner::get_columns (Grob *me_g
   vsize end = binary_search (all, (Grob*) me->get_bound (RIGHT),
                             &Paper_column::less_than);  
   
-  all = vector<Grob*>::vector<Grob*> (all.begin () + start,
-                                     all.begin () + end + 1);
-  return all;
+  vector<Grob*> ret (all.begin () + start, all.begin () + end + 1);
+  return ret;
 }
 
 MAKE_SCHEME_CALLBACK (Spacing_spanner, set_springs, 1);

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to