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 @@ -308,7 +308,7 @@ private static void generateGroupClassHeader(
308308 indent + " }\n " +
309309 indent + " }\n \n " +
310310 indent + "#else\n " +
311- indent + " inline void forEach(std::function<void(%1$s&)> func)\n " +
311+ indent + " template<class Func> inline void forEach(Func&& func)\n " +
312312 indent + " {\n " +
313313 indent + " while(hasNext())\n " +
314314 indent + " {\n " +
@@ -840,7 +840,6 @@ private static CharSequence generateFileHeader(
840840 "#endif\n \n " +
841841 "#if __cplusplus >= 201103L\n " +
842842 "# include <cstdint>\n " +
843- "# include <functional>\n " +
844843 "# include <string>\n " +
845844 "# include <cstring>\n " +
846845 "#endif\n \n " +
You can’t perform that action at this time.
0 commit comments