Skip to content

Commit 554a892

Browse files
CaseyCarterzygoloid
authored andcommitted
[specialized.algorithms] Rename voidify's parameter
`ptr` is an odd name for a parameter that is a reference to storage for an object.
1 parent a2dfa61 commit 554a892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/utilities.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8105,8 +8105,8 @@
81058105
\tcode{\placeholdernc{voidify}}:
81068106
\begin{codeblock}
81078107
template<class T>
8108-
void* @\placeholdernc{voidify}@(T& ptr) noexcept {
8109-
return const_cast<void*>(static_cast<const volatile void*>(addressof(ptr)));
8108+
void* @\placeholdernc{voidify}@(T& obj) noexcept {
8109+
return const_cast<void*>(static_cast<const volatile void*>(addressof(obj)));
81108110
}
81118111
\end{codeblock}
81128112

0 commit comments

Comments
 (0)