[Lumiera] time::Control Errors

Michael R Fisher mfisher31 at gmail.com
Sat Oct 22 11:39:29 CEST 2011

I'm probably just missing some weird c++ nitch, but when I try to 
include lib/time/control.hpp, I get compile errors like crazy.  I'm 
including control.hpp and control-policy.hpp inside of the ibeam tool 
header.  Which files do I need to include and where I guess is the 
question?  I want the time::Control to live inside of the ibeam tool itself.

Please bear with me on the C++ newbie crap. I swear I'll get over it.  
Not sure what ambiguous is all about.  Do I need to put a using 
namespace xxx; somwhere?

  Compiling++  src/gui/panels/panel.cpp
   Compiling++  src/gui/panels/viewer-panel.cpp
In file included from src/gui/widgets/timeline/timeline-ibeam-tool.hpp:32:0,
                  from src/gui/widgets/timeline-widget.hpp:36,
                  from src/gui/panels/timeline-panel.hpp:34,
                  from src/gui/workspace/workspace-window.hpp:39,
                  from src/gui/panels/viewer-panel.cpp:28:
src/lib/time/control-policy.hpp: In static member function 'static 
std::tr1::function<TI(const SRC&)> lib::time::mutation::Policy<TI, SRC, 
boost::disable_if<lib::time::mutation::<unnamed>::canMutateDuration<SRC>, lib::time::Duration>::type>::buildChangeHandler(lib::time::Duration&)':
src/lib/time/control-policy.hpp:337:65: error: call of overloaded 
'ref(lib::time::Duration&)' is ambiguous
/usr/include/c++/4.5/tr1/functional:488:5: note: candidates are: 
std::tr1::reference_wrapper<_Tp> std::tr1::ref(_Tp&) [with _Tp = 
/usr/include/boost/ref.hpp:64:63: note:                 const 
boost::reference_wrapper<T> boost::ref(T&) [with T = lib::time::Duration]

... More of the same stuff ...

More information about the Lumiera mailing list