auto easing = k.second.get(L"<xmlattr>.easing", L"");
auto at = ptree_get<int64_t>(k.second, L"<xmlattr>.at");
- auto keyframe_variable_name = L"timeline." + variable_name + L"." + boost::lexical_cast<std::wstring>(at);
+ auto keyframe_variable_name = L"timeline." + variable_name + L"." + std::to_wstring(at);
if (variable.is<double>())
scene->add_keyframe(variable.as<double>(), scene->create_variable<double>(keyframe_variable_name, false, ptree_get_value<std::wstring>(k.second)), at, easing);
if (at_frame)
condition = scene->timeline_frame() == *at_frame;
else if (when)
- condition = scene->create_variable<bool>(L"tasks.task_" + boost::lexical_cast<std::wstring>(task_id), false, *when);
+ condition = scene->create_variable<bool>(L"tasks.task_" + std::to_wstring(task_id), false, *when);
else
CASPAR_THROW_EXCEPTION(user_error() << msg_info(L"Task elements must have either an at attribute or a when attribute"));