$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [function] minor doc issues
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-11-19 09:51:09
Hi,
Reading
http://www.boost.org/doc/libs/1_36_0/doc/html/function/reference.html
it says:
A function object f is compatible if for the given set of argument types
Arg1, Arg2, ..., ArgN and a return type ResultType, the appropriate
following function is well-formed:
// if ResultType is not void
ResultType foo(Arg1 arg1, Arg2 arg2, ..., ArgN argN)
{
return f(arg1, arg2, ..., argN);
}
// if ResultType is void
ResultType foo(Arg1 arg1, Arg2 arg2, ..., ArgN argN)
{
f(arg1, arg2, ..., argN);
}
I believe the "If ResultType is void" is not needed. We can return void
in C++.
-Thorsten