#ifndef CLION2017_1DEMO_SAMPLE_LIB_H #define CLION2017_1DEMO_SAMPLE_LIB_H #include auto intToBasedString( int value, int base ) -> std::string; template class Base { static_assert( base <= 26, "Out of letters!" ); int m_decimalValue; public: constexpr Base( const int decimalEncoded ) : m_decimalValue( decimalEncoded ) {} auto asString() const { return intToBasedString( m_decimalValue, base ); } bool operator==( std::string const& other ) const { return other == asString(); } }; template constexpr T answer = { 6*9 }; #endif //CLION2017_1DEMO_SAMPLE_LIB_H