Skip to content

Commit c89e2b3

Browse files
committed
Removed use of std::unary_function from docs example.
1 parent a715017 commit c89e2b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/quickbook/zip_iterator.qbk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ These two iterations can now be replaced with a single one as follows:
5252
A non-generic implementation of `zip_func` could look as follows:
5353

5454

55-
struct zip_func :
56-
public std::unary_function<const boost::tuple<const double&, const int&>&, void>
55+
struct zip_func
5756
{
57+
using result_type = void;
58+
5859
void operator()(const boost::tuple<const double&, const int&>& t) const
5960
{
6061
m_f0(t.get<0>());

0 commit comments

Comments
 (0)