test again

This commit is contained in:
Naios 2015-06-11 01:49:35 +02:00
parent d84517cd19
commit 247db6e78d
3 changed files with 8 additions and 6 deletions

View File

@ -11,7 +11,7 @@ CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
elseif(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
elseif(COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()

View File

@ -52,7 +52,6 @@ namespace detail
template<typename _CTy>
using unwrap_callback_t = do_unwrap_callback<::fu::function_type_of_t<_CTy>>;
/*
template<typename... Args>
struct WeakProxyFactory
{
@ -70,7 +69,7 @@ namespace detail
return CreateProxyFromWeak(WeakCallback<Args...>(shared_callback));
}
};
*/
} // detail
@ -91,7 +90,7 @@ inline shared_callback_of_t<_CTy>
(std::forward<callback_of_t<_CTy>>(callback));
};
/* Disabled due to clang errors
/*
template<typename... Args>
inline auto make_weak_wrapped_callback(WeakCallback<Args...> const& weak_callback)
-> Callback<Args...>

View File

@ -29,9 +29,12 @@ Continuable<SpellCastResult> CastSpell(int id)
int main(int argc, char** argv)
{
// typedef shared_callback_of_t<Callback<int>> sc1;
// typedef weak_callback_of_t<Callback<bool>> sc2;
shared_callback_of_t<Callback<int>> sc1;
weak_callback_of_t<Callback<bool>> sc2;
// make_weak_wrapped_callback(sc1);
// make_weak_wrapped_callback(sc2);
typedef Continuable<bool> cont123;
// typedef Continuable<Callback<bool>>::type myty1;