From 2c1a2766713cd46e83c548d3f9c18693c22fb146 Mon Sep 17 00:00:00 2001
From: "Ralf W. Grosse-Kunstleve"
// write "thin wrappers" -int f1(int x) { f(x); } -int f2(int x, double y) { f(x,y); } +int f1(int x) { return f(x); } +int f2(int x, double y) { return f(x,y); } /*...*/ diff --git a/doc/tutorial/doc/tutorial.qbk b/doc/tutorial/doc/tutorial.qbk index 204c5004..10a45220 100644 --- a/doc/tutorial/doc/tutorial.qbk +++ b/doc/tutorial/doc/tutorial.qbk @@ -901,8 +901,8 @@ wrapping as outlined in the [link python.overloading previous section], or writing thin wrappers: // write "thin wrappers" - int f1(int x) { f(x); } - int f2(int x, double y) { f(x,y); } + int f1(int x) { return f(x); } + int f2(int x, double y) { return f(x,y); } /*...*/