1 From 1aa22c746b41a688296f4daf4fc35710d2045a33 Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Wed, 19 May 2021 19:43:43 +0200
4 Subject: [PATCH] fix build with MSVC
6 error C2664: 'libetonyek::IWORKFormula::IWORKFormula(const boost::optional<unsigned int> &)': cannot convert argument 1 from 'int' to 'const boost::optional<unsigned int> &'
8 Change-Id: Iaa3de2d0ef8f960495e5d5afebb75c5063955177
10 src/lib/IWAParser.cpp | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
13 diff --git a/src/lib/IWAParser.cpp b/src/lib/IWAParser.cpp
14 index 7fd95c3..a2bd292 100644
15 --- a/src/lib/IWAParser.cpp
16 +++ b/src/lib/IWAParser.cpp
17 @@ -3403,7 +3403,7 @@ bool IWAParser::parseFormula(const IWAMessage &msg, IWORKFormulaPtr_t &formula)
21 - formula.reset(new IWORKFormula(0));
22 + formula.reset(new IWORKFormula(boost::make_optional(0u)));
23 formula->parse(stack[0]);