在VS2013+Boost编程时常出现"std::Copy_impl"报错问题,出现该问题的原因是VS2013把Copy里参数转化警告warning 4996提升为error了,只需要*.cpp里屏蔽掉这个warnning,如下:
//conHello2.cpp
#if defined(_MSC_VER) && _MSC_VER >= 1400
#pragma warning(push)
#pragma warning(disable:4996)
#endif
#include <iostream>
#include <vector>
#include <algorithm>
#include <boost/bind.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/regex.hpp>
#include <clocale>