C++ 0x lambda의 서명, 결과 및 매개 변수 유형을 Boost.MPL 시퀀스로 추론 할 수 있습니까? 예 : boost::mpl::vector
? 예를 들어,mpl 시퀀스로 람다의 서명을 추론 할 수있는 방법이 있습니까?
[](float a, int b) -> void { std::cout << a << b << std::endl; }
람다 위해 나는 boost::mpl::vector<void,float,int>
을 좀하고 싶습니다.
정확히 어떻게 할 수 있습니까? 나는 functor 자체와 그것의'operator()'에서 parameter_types, result_type 및 components를 시도했지만 작동시키지 못했습니다. – ltjax
샘플의 고주파. 나는 parameter_types에서 pop'ing을 끝내고 front_type에 result_type을 추가했다. – ltjax