0001-add-missing-include-for-std-for_each.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From 4b4d879a6db69ea05b89fdf99df8cb5d902d16b6 Mon Sep 17 00:00:00 2001
  2. From: Roland Illig <roland.illig@gmx.de>
  3. Date: Tue, 19 May 2020 08:43:39 +0200
  4. Subject: [PATCH] add missing include for std::for_each
  5. On NetBSD 8.0 x86_64, gcc complains:
  6. NUM3Parser.cpp: In member function 'virtual bool libetonyek::NUM3Parser::parseDocument()':
  7. NUM3Parser.cpp:46:3: error: 'for_each' is not a member of 'std'
  8. std::for_each(sheetListRefs.begin(), sheetListRefs.end(), std::bind(&NUM3Parser::parseSheet, this, std::placeholders::_1));
  9. Change-Id: I723ba1bcbd10ed9215ceea8c5b224fdc5242be65
  10. Reviewed-on: https://gerrit.libreoffice.org/c/libetonyek/+/94450
  11. Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
  12. Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
  13. ---
  14. src/lib/NUM3Parser.cpp | 1 +
  15. 1 file changed, 1 insertion(+)
  16. diff --git a/src/lib/NUM3Parser.cpp b/src/lib/NUM3Parser.cpp
  17. index 66fb195..c19b611 100644
  18. --- a/src/lib/NUM3Parser.cpp
  19. +++ b/src/lib/NUM3Parser.cpp
  20. @@ -7,6 +7,7 @@
  21. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  22. */
  23. +#include <algorithm>
  24. #include <functional>
  25. #include "NUM3Parser.h"
  26. --
  27. 2.26.2