James Walker
2012-05-10 18:19:26 UTC
In core/smartbody/sbm/src/panimationviewer/ParamAnimStateEditor.cpp,
lines 825, 838, 851, and in
core/smartbody/sbm/src/panimationviewer/ParamAnimAutoMarkingEditor.cpp,
lines 124 and 283, there is code that looks like this:
std::vector<std::string>& selectedMotions =
stateEditor->getSelectedMotions();
This is not legal C++, because getSelectedMotions() returns a vector,
resulting in a temporary value, and you can't take a non-const reference
to a temporary. (I have a vague recollection that maybe Visual Studio
allows it, but standard C++ does not allow it.)
I changed this code to:
std::vector<std::string> selectedMotions(
stateEditor->getSelectedMotions() );
lines 825, 838, 851, and in
core/smartbody/sbm/src/panimationviewer/ParamAnimAutoMarkingEditor.cpp,
lines 124 and 283, there is code that looks like this:
std::vector<std::string>& selectedMotions =
stateEditor->getSelectedMotions();
This is not legal C++, because getSelectedMotions() returns a vector,
resulting in a temporary value, and you can't take a non-const reference
to a temporary. (I have a vague recollection that maybe Visual Studio
allows it, but standard C++ does not allow it.)
I changed this code to:
std::vector<std::string> selectedMotions(
stateEditor->getSelectedMotions() );
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>