From 07bb8d0940a82ce3a6949cd37d908f4ccc8d0b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 20 Nov 2013 17:10:43 +0000 Subject: [PATCH] Fixed error when adding os_thread_func_ptr_deleter, UNIX OSs also use it. [SVN r86777] --- include/boost/interprocess/detail/os_thread_functions.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/interprocess/detail/os_thread_functions.hpp b/include/boost/interprocess/detail/os_thread_functions.hpp index 645c8be..adbad24 100644 --- a/include/boost/interprocess/detail/os_thread_functions.hpp +++ b/include/boost/interprocess/detail/os_thread_functions.hpp @@ -510,8 +510,6 @@ class abstract_thread virtual void run() = 0; }; -#if defined(BOOST_INTERPROCESS_WINDOWS) - template class os_thread_func_ptr_deleter { @@ -536,6 +534,8 @@ class os_thread_func_ptr_deleter T *m_p; }; +#if defined(BOOST_INTERPROCESS_WINDOWS) + inline unsigned __stdcall launch_thread_routine( void * pv ) { os_thread_func_ptr_deleter pt( static_cast( pv ) );