作者Arthurseed (Arthur)
看板C_and_CPP
標題[問題] C++ Builder 2010 boost資料庫使用
時間Thu Mar 31 21:44:25 2016
開發平台(Platform): Win10
額外使用到的函數庫(Library Used): Boost regex
問題(Question):小弟目前使用C++ Builder 2010為開發程式
由於想使用正規表示法便上網查了一下
發現有boost lib中有regex可用,且2010就有boost 1.39
接著就想先依照範例程式試試看
簡化程式如下(Code)所示
光是此行,我compiler就過不了......
不知道該如何解決QQ,懇請大大幫忙!!
錯誤結果(Wrong Output):
[BCC32 Error] sp_convertible.hpp(48): E2514 Cannot (yet) use member overload
resolution during template instantiation
[BCC32 Error] sp_convertible.hpp(66): E2029
'detail::sp_enable_if_convertible_impl<&value>' must be a previously defined
class or struct
[BCC32 Error] object_cache.hpp(76): E2285 Could not find a match for
'shared_ptr<const re_detail::w32_regex_traits_implementation<char>
>::shared_ptr(shared_ptr<const
re_detail::w32_regex_traits_implementation<char> >&)'
程式碼(Code):
#include <vcl.h>
#pragma hdrstop
#include <tchar.h>
#include <boost/regex.hpp>
//---------------------------------------------------------------------------
#pragma argsused
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
boost::regex reg("son[A-Za-z]*");
return 0;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.230.89.37
※ 文章網址: https://webptt.com/m.aspx?n=bbs/C_and_CPP/M.1459431867.A.AF4.html