-
1 votesanswersviews
模板函数通过ENUM查找返回元组值(不同类型)
以下代码生成 “错误:类型''和'const size_t '的无效操作数到二进制'运算符<'”(gcc-4.9.1) 我只想要一个查找函数来获取不同类型的默认值 . 这应该适用吗? #include <iostream> #include <string> #include <tuple> // IDs enum class ID : size_t...