1
此代碼是從提振精神庫的例子,它的確定:升壓靈鳳凰功能錯誤
on_error<fail>(expr,error_handler_function(eh)("expecting ", _4, _3));
但是,此代碼未能在Xcode編譯:
on_error<fail>(expr,error_handler_function(eh)("expecting ", _4, _3, _1));
的錯誤信息:
/usr/local/include/boost/spirit/home/phoenix/core/detail/function_eval.hpp:115:30:
error: too many template arguments for class template 'result'
fn::template result<BOOST_PP_ENUM_PARAMS(N, a)>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
的eh(error_handle)
是正確的,我將添加的參數爲_1
。
不要只_claim_「的'哎(error_handle)'是正確的」,顯示除去一些限制它!對錯誤至關重要(也許有人會說,它顯然不對:)) – sehe