Skip to content

Commit fdbdb94

Browse files
committed
Fix return var qualifier in svm_ptr::get_context
Lack of `const` qualifier is throwing errors with GCC 8.1
1 parent 520f9b3 commit fdbdb94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/compute/memory/svm_ptr.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class svm_ptr
126126
return m_ptr - other.m_ptr;
127127
}
128128

129-
context& get_context() const
129+
const context& get_context() const
130130
{
131131
return m_context;
132132
}

0 commit comments

Comments
 (0)