From 46796f3413922d80f452871d9866d27b806f73da 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); } /*...*/