• <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
            久久天天躁夜夜躁狠狠躁2022| 国产农村妇女毛片精品久久| 久久久久人妻精品一区| AV无码久久久久不卡蜜桃 | 亚洲欧美日韩精品久久| 久久久午夜精品| 国产精品久久久久久久久免费| 欧美午夜精品久久久久久浪潮| 久久AV高清无码| 久久国产欧美日韩精品| 久久99国产精品成人欧美| .精品久久久麻豆国产精品| 国产精品久久新婚兰兰| 国产高潮国产高潮久久久91| 久久久久99精品成人片试看| 久久久久高潮综合影院| 久久综合久久综合亚洲| 久久se这里只有精品| 精品999久久久久久中文字幕| 蜜臀av性久久久久蜜臀aⅴ麻豆 | 午夜福利91久久福利| 2021国产成人精品久久| 激情伊人五月天久久综合| 精品熟女少妇AV免费久久| 久久久久久国产a免费观看黄色大片| 国产—久久香蕉国产线看观看| 国产成人综合久久综合| www久久久天天com| 久久亚洲精品成人AV| 久久久久久久久久久久中文字幕 | 亚洲国产精品久久久久婷婷软件 | 国产精品视频久久久| 粉嫩小泬无遮挡久久久久久| 日韩精品久久无码人妻中文字幕| 香蕉久久久久久狠狠色| 日本五月天婷久久网站| 亚洲精品乱码久久久久久蜜桃图片 | 蜜桃麻豆WWW久久囤产精品| 中文成人久久久久影院免费观看| 亚洲欧美成人久久综合中文网| 伊人久久大香线蕉综合5g|