//======================================================================= // Copyright Baptiste Wicht 2013-2016. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //======================================================================= #ifndef ENABLE_IF_H #define ENABLE_IF_H namespace std { template struct enable_if {}; template struct enable_if { typedef T type; }; template< bool B, class T = void > using enable_if_t = typename enable_if::type; template struct disable_if {}; template struct disable_if { typedef T type; }; template< bool B, class T = void > using disable_if_t = typename disable_if::type; } //end of namespace std #endif