如何获取对特定元组实例的“get”函数的引用?下面给出了我最好的尝试,但没有针对g++4.5.1进行编译#include#includetypedefstd::tupleTuple;autot=(std::string&(Tuple&))(std::get);编译错误是:a.cc:5:error:invalidcasttofunctiontype‘std::string&(Tuple&)’a.cc:5:error:unabletodeduce‘auto’from‘’我想使用函数引用作为某些STL算法的输入。实际上,我有点惊讶这对我来说似乎是多么不平凡。 最佳