#ifndef __JLANG__JRESOLVE__ #define __JLANG__JRESOLVE__ /** * \author mdejong */ namespace JLANG {} namespace JPP { using namespace JLANG; } namespace JLANG { /** * Test existence of class T. */ template class JResolve { template static auto exists(U*) -> decltype(sizeof(U) >= 0); template static auto exists(...) -> std::false_type; public: static const bool value = std::is_same(0))>::value; //!< true if an implementation of class T exists; else false }; } #endif