Skip to content

Commit 9a6d4c3

Browse files
committed
[forward] Remove mid-example paragraph breaks
1 parent 7f7e757 commit 9a6d4c3

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

source/utilities.tex

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,6 @@
441441
shared_ptr<A> sp2 = factory<A>(i, 1.414); // OK
442442
}
443443
\end{codeblock}
444-
445-
\pnum
446444
In the first call to \tcode{factory},
447445
\tcode{A1} is deduced as \tcode{int}, so 2 is forwarded
448446
to \tcode{A}'s constructor as an rvalue.
@@ -451,7 +449,6 @@
451449
to \tcode{A}'s constructor as an lvalue. In
452450
both cases, \tcode{A2} is deduced as \tcode{double}, so
453451
1.414 is forwarded to \tcode{A}'s constructor as an rvalue.
454-
455452
\end{example}
456453
\end{itemdescr}
457454

@@ -475,18 +472,16 @@
475472

476473
struct A {
477474
A();
478-
A(const A&); // copies from lvalues
479-
A(A&&); // moves from rvalues
475+
A(const A&); // copies from lvalues
476+
A(A&&); // moves from rvalues
480477
};
481478

482479
void g() {
483480
A a;
484-
shared_ptr<A> sp1 = factory<A>(a); // ``\tcode{a}'' binds to \tcode{A(const A\&)}
485-
shared_ptr<A> sp1 = factory<A>(std::move(a)); // ``\tcode{a}'' binds to \tcode{A(A\&\&)}
481+
shared_ptr<A> sp1 = factory<A>(a); // ``\tcode{a}\!'' binds to \tcode{A(const A\&)}
482+
shared_ptr<A> sp1 = factory<A>(std::move(a)); // ``\tcode{a}\!'' binds to \tcode{A(A\&\&)}
486483
}
487484
\end{codeblock}
488-
489-
\pnum
490485
In the first call to \tcode{factory},
491486
\tcode{A1} is deduced as \tcode{A\&}, so \tcode{a} is forwarded
492487
as a non-const lvalue. This binds to the constructor \tcode{A(const A\&)},
@@ -496,7 +491,6 @@
496491
\tcode{A1} is deduced as \tcode{A}, so \tcode{a} is forwarded
497492
as an rvalue. This binds to the constructor \tcode{A(A\&\&)},
498493
which moves the value from \tcode{a}.
499-
500494
\end{example}
501495
\end{itemdescr}
502496

0 commit comments

Comments
 (0)