【发布时间】:2015-06-20 06:45:07
【问题描述】:
我有这段代码,它基于 SO 中的几篇文章:
boost::uuids::uuid uuid = boost::uuids::random_generator()();
auto uuidString= boost::lexical_cast<std::string>(uuid);
但是当我编译这段代码时,我得到了这个错误:
Source type is neither std::ostream`able nor std::wostream`able C:\Local\boost\boost\lexical_cast\detail\converter_lexical.hpp
我该如何解决这个错误?
【问题讨论】:
标签: c++ boost uuid lexical-cast boost-uuid