[PATCH] libetonyek: std::for_each

Roland Illig roland.illig at gmx.de
Sun May 17 21:41:42 UTC 2020


NUM3Parser.cpp: In member function 'virtual bool
libetonyek::NUM3Parser::parseDocument()':
NUM3Parser.cpp:46:3: error: 'for_each' is not a member of 'std'
    std::for_each(sheetListRefs.begin(), sheetListRefs.end(),
std::bind(&NUM3Parser::parseSheet, this, std::placeholders::_1));

std::for_each needs <algorithm>.

--- src/lib/NUM3Parser.cpp.orig 2018-12-28 17:45:35.000000000 +0000
+++ src/lib/NUM3Parser.cpp
@@ -7,6 +7,7 @@
   * file, You can obtain one at http://mozilla.org/MPL/2.0/.
   */

+#include <algorithm>
  #include <functional>

  #include "NUM3Parser.h"


More information about the LibreOffice mailing list