On 07/06/2013 09:19 PM, Tom Breton (Tehom) wrote:
> OK, that still leaves you with the `find' errors in CompositionView.
> Seems to be a failed template instantiation.

src/gui/editors/segment/compositionview/CompositionView.cpp:1432:96:
error: no matching function for call to
'find(std::vector<Rosegarden::CompositionRect>::iterator,
std::vector<Rosegarden::CompositionRect>::iterator,
Rosegarden::CompositionRect&)'

   I'm not getting this at all.  Builds fine for me.

Original line:

CompositionModelImpl::rectcontainer::iterator t =
     std::find(intersections.begin(), intersections.end(), ri);

The "96" is specifically calling out "ri".  It's as if it doesn't 
believe that a CompositionRect could be an element of a 
CompositionModelImpl::rectcontainer.

   But it is.  If we follow the trail back, we find that intersections 
is a CompositionModelImpl::rectcontainer which is a 
std::vector<CompositionRect>.  The error message even shows that 
everything fits properly:

find(std::vector<Rosegarden::CompositionRect>::iterator,
      std::vector<Rosegarden::CompositionRect>::iterator,
      Rosegarden::CompositionRect&)

However.  I do believe that with one of my cleanups, I removed a 
#include for algorithm:

   #include <algorithm>

Try adding that to the top of CompositionView.cpp.

Ted.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to