forked from boostorg/mp11
Remove usages of old style cast, use static_cast instead
This silences compiler warnings generated by GCC
This commit is contained in:
1 parent
3e84aef18e
commit
46c4e8a517
2 files changed
+2
-2
No files matched your search
@@ -309,7 +309,7 @@ template<template<class...> class L, class... T, template<class...> class L2, cl
|
||||
{
|
||||
template<class... W> static mp_identity<L<W...>> f( U*..., mp_identity<W>*... );
|
||||
|
||||
using R = decltype( f( (mp_identity<T>*)0 ... ) );
|
||||
using R = decltype( f( static_cast<mp_identity<T>*>(0) ... ) );
|
||||
|
||||
using type = typename R::type;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user