lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compilation failure with g++ 4.5


From: Werner LEMBERG
Subject: compilation failure with g++ 4.5
Date: Sat, 06 Mar 2010 22:06:22 +0100 (CET)

[git commit 829d4293]

Building lilypond with g++ 4.5 fails:

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

Note that g++ 4.5 is still experimental; however, it seems that it
becomes more picky...

I've applied the patch below, and it seems to work.


    Werner


======================================================================


--- spacing-spanner.cc.old      2010-03-06 19:39:55.000000000 +0100
+++ spacing-spanner.cc  2010-03-06 20:05:32.000000000 +0100
@@ -49,8 +49,8 @@
   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);
+  all = vector<Grob*> (all.begin () + start,
+                      all.begin () + end + 1);
   return all;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]