boost库在VC6里面怎以用不了?
#include "stdafx.h"
#include <iostream>
#include <boost/lexical_cast.hpp>
int main(int argc, char* argv[])
{
using boost::lexical_cast;
int a = lexical_cast<int>("123");
double b = lexical_cast<double>("123.12");
std::cout<<a<<std::endl
std::cout<<b<<std::endl;
system("PAUSE");
return 0;
}
编绎后报错:type 'int' unexpected
type 'double' unexpected
syntax error : missing ';' before 'tag::id'
以上代码在CB6里面没问题,怎么在VC里面就不行了呢?