Skip to content

Commit b8538e0

Browse files
committed
Resolve conflicting function-argument pointer advice
1 parent 6b6bd66 commit b8538e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cppguide.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,9 +1868,10 @@ <h3 id="Inputs_and_Outputs">Inputs and Outputs</h3>
18681868
<p>Parameters are either input to the function, output from the
18691869
function, or both. Input parameters should usually be values
18701870
or <code>const</code> references,
1871+
<span class="nondrake">
18711872
while required (non-nullable) output and input/output parameters should
18721873
usually be references. Generally, use <code>absl::optional</code> to represent
1873-
optional inputs, and non-<code>const</code> pointers to represent
1874+
optional inputs,</span> and use non-<code>const</code> pointers to represent
18741875
optional outputs.</p>
18751876

18761877
<p>

0 commit comments

Comments
 (0)