[问题] 请教boost在complie时所遇到之错误问题

楼主: pandamilktea (熊猫奶茶)   2014-07-23 13:25:16
开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
Boost 1.55, ICU4C 53.1
问题(Question):
run底下的source code时, 发生错误
http://www.ccfinder.net/download/ccfx-src.zip
错误讯息显示boost::bind参数数量不正确
喂入的资料(Input):
预期的正确结果(Expected Output):
错误结果(Wrong Output):
错误讯息 https://db.tt/oo21Q49D
程式码(Code):(请善用置底文网页, 记得排版)
http://codepad.org/42OeXYGe
补充说明(Supplement):
麻烦请板上高手帮忙解惑, 谢谢!
作者: soheadsome (师大狗鼻哥)   2014-07-23 14:28:00
你的argv和argc是main的命列参数?然后push_back是你想把牠们放到vector?
楼主: pandamilktea (熊猫奶茶)   2014-07-23 14:40:00
连结为完整程式码 https://db.tt/cr1wqIw2看起来应该是这样没错, source code载完就卡在这err程式码修改为放上较完整之一部份
作者: soheadsome (师大狗鼻哥)   2014-07-23 15:26:00
那你就直接用algorithm里的copy不就好了....copy(argv,argv+argc,back_inserter(/*你的vector */))" target="_blank" rel="nofollow">
我这样编得过欸而且错误讯息明明是跟你讲适用到list的部分有错你怎么会觉得适用到vector那段有问题不对 我看错了" target="_blank" rel="nofollow">
应该是这两行的bind没传this

Links booklink

Contact Us: admin [ a t ] ucptt.com