summaryrefslogtreecommitdiff
path: root/ext/pybind11/tests/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pybind11/tests/object.h')
-rw-r--r--ext/pybind11/tests/object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pybind11/tests/object.h b/ext/pybind11/tests/object.h
index 753f654b2..9235f19c2 100644
--- a/ext/pybind11/tests/object.h
+++ b/ext/pybind11/tests/object.h
@@ -164,10 +164,10 @@ public:
operator T* () { return m_ptr; }
/// Return a const pointer to the referenced object
- T* get() { return m_ptr; }
+ T* get_ptr() { return m_ptr; }
/// Return a pointer to the referenced object
- const T* get() const { return m_ptr; }
+ const T* get_ptr() const { return m_ptr; }
private:
T *m_ptr;
};