#ifndef __JLANG__JCONSTRUCTOR__ #define __JLANG__JCONSTRUCTOR__ #include "JLang/JTest.hh" /** * \author mdejong */ namespace JLANG {} namespace JPP { using namespace JLANG; } namespace JLANG { /** * Template class test for availability of a suitable constructor JType_t(const JArgument_t). */ template class JConstructor : public JTest { using JTest::test; static JTrue test(const JType_t&); public: static const bool has_constructor = JTEST(test(std::declval())); //!< true if JType_t can be constructed from JArgument_t; else false }; } #endif