C++ (Qt)typedef boost::bimap<Status, std::string> hash_type; static const hash_type & get_hash() {#define X(a, b) {a, b}, static hash_type hash = { STATUS }; // так не прокатит..#undef X
C++ (Qt)typedef boost::bimap<Status, std::string> hash_type; static const hash_type & get_hash() {#define X(a, b) (a, b) static hash_type hash = boost::assign::list_of<hash_type::relation> STATUS;#undef X return hash; }