aboutsummaryrefslogtreecommitdiffstats
path: root/CheckNeedGetPointer.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CheckNeedGetPointer.cmake')
-rw-r--r--CheckNeedGetPointer.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/CheckNeedGetPointer.cmake b/CheckNeedGetPointer.cmake
new file mode 100644
index 0000000..2e53ac3
--- /dev/null
+++ b/CheckNeedGetPointer.cmake
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 2.8.3)
+
+check_cxx_source_compiles(
+"
+#include <boost/get_pointer.hpp>
+
+namespace boost {
+template <class T> inline T * get_pointer(const std::shared_ptr<T> &p) {
+ return p.get();
+}
+}
+
+int main() {
+ return 0;
+}
+"
+ENTITYX_NEED_GET_POINTER_SHARED_PTR_SPECIALIZATION
+)