摘要:
支持类型安全地存储和获取任意类型的值#include #include #include #include typedef std::list many;void append_int(many & values, int value){ boost::any to_append = value; values.push_back(to_append);}void append_string(many & values, const std::string & value){ values.push_back(value);}void append_char_ptr(m 阅读全文