From d4057418dacd783c633163e2bbce702d458eaf22 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 23 Nov 2014 15:24:29 +0200 Subject: [PATCH] Fix build with latest Visual Studio This fiixes: error C2797: list initialization inside member initializer list or non-static data member initializer is not implemented http://msdn.microsoft.com/en-us/library/dn793970.aspx --- src/ass_dialogue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ass_dialogue.h b/src/ass_dialogue.h index e47466ed1..786d67591 100644 --- a/src/ass_dialogue.h +++ b/src/ass_dialogue.h @@ -129,13 +129,13 @@ struct AssDialogueBase { /// Layer number int Layer = 0; /// Margins: 0 = Left, 1 = Right, 2 = Top (Vertical) - std::array Margin = {{0, 0, 0}}; + std::array Margin = std::array{{ 0, 0, 0 }}; /// Starting time agi::Time Start = 0; /// Ending time agi::Time End = 5000; /// Style name - boost::flyweight Style{ "Default" }; + boost::flyweight Style = boost::flyweight("Default"); /// Actor name boost::flyweight Actor; /// Effect name