次の行はエラーでコンパイルされません。
No viable overloaded '='
std::string myString;
float myFloat;
boost::tuple<const std::string&, float> myTuple
= boost::tuple<const std::string&, float>(myString, myFloat);
std::vector<boost::tuple<const std::string&, float> > myVector;
myVector.push_back(myTuple);
誰も手がかりを持っています!? ヒント: 「const std::string&」を単純な std::string に置き換えれば、すべて問題ありません。