File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ private static void generateGroupClassHeader(
307307 indent + " }\n " +
308308 indent + " }\n \n " +
309309 indent + "#else\n " +
310- indent + " inline void forEach(std::function<void(%1$s&)> func)\n " +
310+ indent + " template<class Func> inline void forEach(Func&& func)\n " +
311311 indent + " {\n " +
312312 indent + " while(hasNext())\n " +
313313 indent + " {\n " +
@@ -839,7 +839,6 @@ private static CharSequence generateFileHeader(
839839 "#endif\n \n " +
840840 "#if __cplusplus >= 201103L\n " +
841841 "# include <cstdint>\n " +
842- "# include <functional>\n " +
843842 "# include <string>\n " +
844843 "# include <cstring>\n " +
845844 "#endif\n \n " +
You can’t perform that action at this time.
0 commit comments