diff --git a/include/sqrat/sqratAllocator.h b/include/sqrat/sqratAllocator.h index 6986764b..abf5cc04 100644 --- a/include/sqrat/sqratAllocator.h +++ b/include/sqrat/sqratAllocator.h @@ -46,20 +46,8 @@ namespace Sqrat { /// utility taken from http://stackoverflow.com/questions/2733377/is-there-a-way-to-test-whether-a-c-class-has-a-default-constructor-other-than/2770326#2770326 /// may be obsolete in C++ 11 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -template< class T > -class is_default_constructible { - template - class receive_size{}; +template< class T > using is_default_constructible = std::is_default_constructible; - template< class U > - static int sfinae( receive_size< sizeof U() > * ); - - template< class U > - static char sfinae( ... ); - -public: - enum { value = sizeof( sfinae(0) ) == sizeof(int) }; -}; /// @endcond /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////