• <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 閱讀(1058) 評論(0)  編輯 收藏 引用 所屬分類: boost
            久久婷婷五月综合色奶水99啪| 丁香久久婷婷国产午夜视频| 久久久久se色偷偷亚洲精品av | 亚洲精品美女久久777777| 久久久亚洲裙底偷窥综合| 99国产欧美精品久久久蜜芽| 久久精品国产影库免费看| 一日本道伊人久久综合影| 久久国产精品99精品国产987| 精品欧美一区二区三区久久久| 欧美伊人久久大香线蕉综合| 91精品国产高清久久久久久io| 亚洲国产成人久久综合一区77| 国产精品99久久免费观看| 久久久午夜精品| 国产精品激情综合久久| 69久久精品无码一区二区| 思思久久99热只有频精品66| 99久久国产综合精品五月天喷水| 久久精品国产免费观看| 亚洲?V乱码久久精品蜜桃| 久久久久久久尹人综合网亚洲 | 久久大香香蕉国产| 狠狠色丁香久久婷婷综合_中| 国产精品九九久久免费视频| 国产精品久久成人影院| 久久综合综合久久综合| 久久只这里是精品66| 日韩美女18网站久久精品| 国产精品热久久毛片| 四虎国产精品免费久久久| 久久99精品久久久久久久不卡| 囯产极品美女高潮无套久久久| 精品熟女少妇aⅴ免费久久| 久久综合九色综合97_久久久 | 午夜福利91久久福利| 国产亚洲色婷婷久久99精品| 亚洲香蕉网久久综合影视| 久久www免费人成看片| 久久久亚洲裙底偷窥综合| 99久久国产综合精品女同图片|