diff options
author | Alec Thomas <alec@swapoff.org> | 2013-08-22 18:38:14 -0400 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2013-08-22 22:51:20 -0400 |
commit | 302bf251f95577ecef8c9662f95651ae2cc49cd7 (patch) | |
tree | de10e8e1105800c78bf961d719c5aa606fb6cedd /CheckNeedGetPointer.cmake | |
parent | 5716e2ef6578e8cd2ea2b2e266d9f438c233ed0f (diff) |
Switch from boost::signal to embedded Simple::Signal.
Diffstat (limited to 'CheckNeedGetPointer.cmake')
-rw-r--r-- | CheckNeedGetPointer.cmake | 18 |
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 +) |