Skip to content

Commit a72f12d

Browse files
committed
Apply resolution for LWG 2516 (from Motion 3).
1 parent 9e16c5f commit a72f12d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

memory.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,11 +1794,11 @@ <h1>Class template <code>observer_ptr</code> overview</h1>
17941794
inline namespace fundamentals_v2 {
17951795

17961796
template &lt;class W> class observer_ptr {
1797+
using pointer = add_pointer_t&lt;W>; <i>// exposition-only</i>
1798+
using reference = add_lvalue_reference_t&lt;W>; <i>// exposition-only</i>
17971799
public:
17981800
// publish our template parameter and variations thereof
17991801
using element_type = W;
1800-
using pointer = add_pointer_t&lt;W>; <i>// exposition-only</i>
1801-
using reference = add_lvalue_reference_t&lt;W>; <i>// exposition-only</i>
18021802

18031803
<cxx-ref insynopsis to="memory.observer.ptr.ctor"></cxx-ref>
18041804
// default c’tor

0 commit comments

Comments
 (0)