Skip to content

Commit

Permalink
Fixed build in Xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 22, 2016
1 parent 8bc4e38 commit e147835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Telegram/SourceFiles/ui/animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,8 @@ class SimpleAnimation {

private:
struct Data {
Data(const ValueType &from, Callback &&updateCallback)
template <typename Lambda, typename = std_::enable_if_t<std_::is_rvalue_reference<Lambda&&>::value>>
Data(const ValueType &from, Lambda &&updateCallback)
: value(from, from)
, a_animation(animation(this, &Data::step))
, updateCallback(std_::move(updateCallback)) {
Expand Down

0 comments on commit e147835

Please sign in to comment.