Dear developers

Compiling 2.3.8dev from recent git pull, I get these deprecation warnings :

../../../../2.3.x/src/frontends/qt4/GuiDocument.cpp:172:18: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
  172 |         : public binary_function<string, string, int>

../../2.3.x/src/BiblioInfo.cpp:1152:29: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
 1152 | class compareNoCase: public binary_function<docstring, docstring, bool>

../../2.3.x/src/BranchList.cpp:30:38: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   30 | class BranchNamesEqual : public std::unary_function<Branch, bool>

../../2.3.x/src/Format.cpp:61:33: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   61 | class FormatNamesEqual : public unary_function<Format, bool>

../../2.3.x/src/Format.cpp:75:38: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   75 | class FormatExtensionsEqual : public unary_function<Format, bool>

../../2.3.x/src/Format.cpp:89:32: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   89 | class FormatMimeEqual : public unary_function<Format, bool>

./../2.3.x/src/IndicesList.cpp:30:37: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   30 | class IndexNamesEqual : public std::unary_function<Index, bool>

../../2.3.x/src/IndicesList.cpp:46:38: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   46 | class IndexHasShortcut : public std::unary_function<Index, bool>

../../2.3.x/src/Lexer.cpp:139:18: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
  139 |         : public binary_function<LexerKeyword, LexerKeyword, bool>

../../2.3.x/src/lyxfind.cpp:75:28: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
   75 | class MatchString : public binary_function<Paragraph, pos_type, int>

../../2.3.x/src/TextClass.cpp:75:33: warning: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Wdeprecated-declarations]
   75 | class LayoutNamesEqual : public unary_function<Layout, bool>

../../2.3.x/src/insets/InsetCommandParams.cpp:596:41: warning: ‘std::const_mem_fun_ref_t<_Ret, _Tp> std::mem_fun_ref(_Ret (_Tp::*)() const) [with _Ret = bool; _Tp = lyx::ParamInfo::ParamData]’ is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 596 | not1(mem_fun_ref(&ParamInfo::ParamData::isOptional)));

Harmless I guess, but should be removed before 2.4.0/2.3.8.

Up to date Debian bookworm
Configuration
  Host type:               x86_64-pc-linux-gnu
Special build flags: build=development std-regex warnings assertions stdlib-debug use-hunspell use-enchant
  Bundled libraries:        boost hunspell
  C++ Compiler:            g++ (12.2.0)
C++ Compiler flags: -Wall -Wextra -fPIC -g -O -std=c++14 -Wno-deprecated-copy
  C++ Compiler user flags:
  Linker flags:
  Linker user flags:
  Qt Frontend:
      Qt version:          5.15.8
  Packaging:               posix
  LyX binary dir:          /usr/local/bin
  LyX files dir:           /usr/local/share/lyx-2.3.8dev

--
Jean-Pierre
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to