1 // config.hpp 2 // 3 // Copyright (c) 2003 Eugene Gladyshev 4 // 5 // Permission to copy, use, modify, sell and distribute this software 6 // is granted provided this copyright notice appears in all copies. 7 // This software is provided "as is" without express or implied 8 // warranty, and with no claim as to its suitability for any purpose. 9 // 10 11 #ifndef __ttl_config__hpp 12 #define __ttl_config__hpp 13 14 #include <new> 15 #include <stdexcept> 16 #include <functional> 17 #include <memory> 18 #include <string> 19 20 #if defined(_MSC_VER) 21 # define TTL_MAX_TEMPLATE_PARAMS 25 22 #elif defined(__GNUC__) 23 # define TTL_MAX_TEMPLATE_PARAMS 25 24 #else 25 # define TTL_MAX_TEMPLATE_PARAMS 25 26 #endif 27 28 #define TTL_MAX_TYPELIST_PARAMS TTL_MAX_TEMPLATE_PARAMS 29 #define TTL_MAX_TUPLE_PARAMS 15 30 #define TTL_MAX_NAMED_PARAMS TTL_MAX_TUPLE_PARAMS 31 32 namespace ttl 33 { 34 #if defined(UNICODE)||defined(_UNICODE) 35 typedef std::wstring string; 36 #define SC( txt ) L txt 37 #else 38 typedef std::string string; 39 #define SC( txt ) txt 40 #endif 41 42 typedef string::value_type tchar; 43 44 45 struct empty_type {}; 46 } 47 48 49 #endif //__ttl_config__hpp 50