Skip to content

Commit 1bbd1aa

Browse files
committed
OrcLib: Utils: DescriptorGuard: fix operator* calling copy ctor
1 parent 2169e05 commit 1bbd1aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OrcLib/Utils/Guard.h

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ class DescriptorGuard
166166
T& value() { return m_data; }
167167

168168
const T& operator*() const { return m_data; }
169+
T& operator*() { return m_data; }
169170

170171
T* data() { return &m_data; }
171172
const T* data() const { return &m_data; }

0 commit comments

Comments
 (0)