Am 26.11.2021 um 21:09 schrieb Stephan Witt <st.w...@gmx.net>: > > Am 05.05.2020 um 01:24 schrieb Richard Kimberly Heck <rikih...@lyx.org>: >> >> commit c506f304bc522ea91ad5a7e97cd4e3c7d54376b0 >> Author: Richard Kimberly Heck <rikih...@lyx.org> >> Date: Mon May 4 19:41:18 2020 -0400 >> >> Fix a number of issues that were stopping compilation with MSVC 19. >> >> Patch from Thibaut Cuvelier, modified slightly by me (mostly for style). >> --- >> lib/generate_contributions.py | 8 +++++ >> src/BiblioInfo.cpp | 12 ++----- >> src/BranchList.cpp | 7 +--- >> src/Format.cpp | 47 +++++++++++++++++---------- >> src/Format.h | 2 + >> src/Lexer.cpp | 28 +++++++--------- >> src/TextClass.cpp | 64 +++++++++++++++++++----------------- >> src/TextClass.h | 6 +++- >> src/frontends/qt/GuiDocument.cpp | 1 - >> src/frontends/tests/biblio.cpp | 2 +- >> src/insets/InsetCommandParams.cpp | 2 +- >> src/lyxfind.cpp | 2 +- >> 12 files changed, 99 insertions(+), 82 deletions(-) > > Hi Riki, > > one part of this patch is required to compile 2.3.x on latest Mac. > I’ve attached the change to InsetCommandParams::getFirstNonOptParam. > I don’t know if it is safe. But it would be nice to be able to build > LyX 2.3.x for Apple M1 architecture too. > > Would it be an option to backport this part of the change? > > If there is another solution I’d like to test it. > > BR, Stephan > > <InsetCommandParams.patch>
Hi all, I’d like to add some details and a solution to the issue. With Apple clang and -std=c++14 I’m getting a warning but it compiles: CXX insets/InsetCommandParams.o lyx-2.3.x/src/insets/InsetCommandParams.cpp:596:9: warning: 'mem_fun_ref<bool, lyx::ParamInfo::ParamData>' is deprecated [-Wdeprecated-declarations] not1(mem_fun_ref(&ParamInfo::ParamData::isOptional))); With Apple clang and -std=c++17 I’m getting an error: CXX insets/InsetCommandParams.o lyx-2.3.x/src/insets/InsetCommandParams.cpp:596:6: error: use of undeclared identifier 'mem_fun_ref' not1(mem_fun_ref(&ParamInfo::ParamData::isOptional))); So the solution is simple. One cannot compile LyX-2.3.x with the C++17 - so one should’t try it. :) Now I can build LyX 2.3.x for Apple M1 architecture with Apple clang 12.0.0 too. BR, Stephan -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel