• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Error

            C++博客 首頁 新隨筆 聯系 聚合 管理
              217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks
            搞了搞split,發現boost里邊已經有了,就拿過來直接用,之前翻了下facebook的,也沒見比boost更容易讀,還是boost算了。
            在vs2012上編譯了一下,發現有問題:error C4996: 'std::_Copy_impl': Function call with para

            找了下,老外是這么說的:http://stackoverflow.com/questions/14141476/warning-with-boostsplit-when-compiling

            You haven't done anything wrong. Visual Studio is being overly cautious. In debug mode, visual studio uses something called "Checked Iterators". Pointers are also iterators, but the checking mechanism doesn't work with them. So when a standard library algorithm is called with pointers, which is something that boost::split does, it issues this warning.

            You'll get the same warning with this obviously safe code:

            int main()
            {
                int x[10] = {};
                int y[10] = {};
                int *a = x, *b = y;
                std::copy(a, a+10, b);
            }

            Disable the warning. It's for beginners. It's on by default for the safety of beginners, because if it was off by default, they wouldn't know how to turn it on.





            #include <boost/algorithm/string/classification.hpp>
            #include <boost/algorithm/string.hpp>
            void LearnSplit()
            {
                std::string strTem("1,2,3,4");
                std::list<std::string> listStrTem;
                std::vector<std::string> vectorStrTem;
                boost::split(listStrTem, strTem, boost::is_any_of(","));
                boost::split(vectorStrTem, strTem, boost::is_any_of(","));
                for(auto item : listStrTem)
                {
                    std::cout << item.c_str() << std::endl;
                }
                std::string s = "Hello, the beautiful world!";
                std::vector<std::string> rs;
                boost::split( rs, s, boost::is_any_of( " ,!" ), boost::token_compress_on );
            }
            int _tmain(int argc, _TCHAR* argv[])
            {
                LearnSplit();
            return 0;
            }
            posted on 2013-04-11 00:29 Enic 閱讀(1071) 評論(0)  編輯 收藏 引用 所屬分類: boost
            久久综合九色综合久99| 亚洲午夜久久久久妓女影院| 欧洲人妻丰满av无码久久不卡 | 午夜精品久久久久久毛片| 久久婷婷色综合一区二区| 无码专区久久综合久中文字幕| 久久99久久99精品免视看动漫| 狠狠狠色丁香婷婷综合久久五月| 国产亚洲精午夜久久久久久| 最新久久免费视频| 久久777国产线看观看精品| 久久久99精品成人片中文字幕 | 狠狠色丁香婷婷久久综合不卡| 久久久这里有精品中文字幕| 亚洲国产欧美国产综合久久| 久久精品国产亚洲一区二区三区| 麻豆成人久久精品二区三区免费 | 人妻精品久久无码区| 久久精品?ⅴ无码中文字幕| 少妇高潮惨叫久久久久久| 日韩久久无码免费毛片软件| 久久久青草青青亚洲国产免观| 久久天天躁夜夜躁狠狠| 久久av免费天堂小草播放| 97久久精品无码一区二区| 伊人久久久AV老熟妇色| 亚洲国产天堂久久综合| 久久久久久综合一区中文字幕| 99久久精品免费看国产一区二区三区 | 武侠古典久久婷婷狼人伊人| 91精品免费久久久久久久久| 久久av无码专区亚洲av桃花岛| 久久亚洲AV无码精品色午夜| 久久精品国产99久久久香蕉| 国产精品VIDEOSSEX久久发布| 婷婷久久综合九色综合绿巨人| 国产精品一区二区久久| 精品国际久久久久999波多野| 亚洲成色WWW久久网站| 久久天天躁夜夜躁狠狠| 久久午夜免费视频|