fusion::transformが動かない
transform_viewは生成できますがそこから何してもエラー.
戻り値型の推論でこけてるみたいだけれど,さっぱりわかりません.
何か変な勘違いしてますかねえ…保留.
int main(int, char*[]) { struct str { template<typename T> auto operator()(T const& x) const -> std::string { return boost::lexical_cast<std::string>(x); } }; auto vec = boost::fusion::make_vector(1, 3.14, std::string("string")); auto view = boost::fusion::transform(vec, str()); auto vec2 = boost::fusion::as_vector(view); // error: 'result' following the 'template' keyword does not refer to a template // struct result_of_nested_result : F::template result<FArgs> // ^~~~~~ return 0; }