助推汉娜 您的元编程标准库 总览 # include < boost> # include < cassert> # include < string> namespace hana = boost::hana; using namespace hana ::literals ; struct Fish { std::string name; }; struct Cat { std::string name; }; struct Dog { std::string name; }; int main () { // Sequences capable of holding heter