mirror of
https://github.com/boostorg/functional.git
synced 2025-06-25 03:51:35 +02:00
@ -121,7 +121,7 @@ public:
|
||||
be <tt>std::ostream&&</tt>. Since you cannot have a reference to a
|
||||
reference, at this point we should get a compilation error because
|
||||
references to references are illegal in C++ (but see <a href=
|
||||
"http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#106">C++
|
||||
"http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#106">C++
|
||||
Standard core language active issues list</a>).</p>
|
||||
|
||||
<p>The binders in this library avoid this problem by using the Boost
|
||||
|
@ -228,7 +228,7 @@ std::for_each(c.begin(), c.end(),
|
||||
<li>The Standard Committee has recognised the problem of references to
|
||||
references occurring during template instantiation and has moved to fix
|
||||
the standard (see the <a href=
|
||||
"http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#106">C++
|
||||
"http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#106">C++
|
||||
standard core language active issues list</a>).</li>
|
||||
</ol>
|
||||
|
||||
|
@ -151,7 +151,7 @@ public:
|
||||
declaring the argument as <tt>const A&</tt>, then if A were a
|
||||
reference type, we would have a reference to a reference, which is
|
||||
currently illegal (but see <a href=
|
||||
"http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#106">C++ core
|
||||
"http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#106">C++ core
|
||||
language issue number 106)</a></p>
|
||||
|
||||
<p>So the way in which we want to declare the second argument for
|
||||
|
@ -99,7 +99,7 @@ public:
|
||||
<p>Note that if the Predicate's <tt>argument_type</tt> is a reference, the
|
||||
type of <tt>operator()</tt>'s argument would be a reference to a reference.
|
||||
Currently this is illegal in C++ (but see the <a href=
|
||||
"http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#106">C++
|
||||
"http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#106">C++
|
||||
standard core language active issues list</a>).</p>
|
||||
|
||||
<p>However, if we instead defined <tt>operator()</tt> to accept Predicate's
|
||||
|
@ -108,7 +108,7 @@ public:
|
||||
declaring the argument as <tt>const Arg&</tt>, then if Arg were a
|
||||
reference type, we would have a reference to a reference, which is
|
||||
currently illegal (but see <a href=
|
||||
"http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#106">C++ core
|
||||
"http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#106">C++ core
|
||||
language issue number 106)</a></p>
|
||||
|
||||
<p>So the way in which we want to declare the argument for
|
||||
|
Reference in New Issue
Block a user