![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
boost
gong_xucheng
这个作者很懒,什么都没留下…
展开
-
Boost.Locale 之字符转换 gbk utf8 big5 string wstring等
Boost.Locale是一个库,它提供高质量的本地化的设施在C + +的方式。它最初是设计的一部分CppCMS - C + +的Web框架的项目,然后促成了提升。Boost.Locale提供强大的工具,跨平台的本地化软件开发 - 这会谈到用户在其语言的软件。提供的功能:正确的大小写转换,大小写和规范化。整理(排序),其中包括4 Unicode排序规则层面的支持。日期,时间,时区和转载 2014-05-16 10:09:09 · 6774 阅读 · 0 评论 -
linux下编译boost.python
最近项目使用c++操作python脚本,选用boost.python库原创 2014-05-05 14:11:15 · 5242 阅读 · 0 评论 -
利用boost获取时间并格式化
利用boost来获取当前时间又方便快捷,还不用考虑跨平台的问题。1. 输出YYYYMMDD[cpp] view plaincopy#include #define BOOST_DATE_TIME_SOURCE std::string strTime = boost::gregorian::to_iso_string(\ boost::gregorian:转载 2014-05-22 14:43:40 · 8754 阅读 · 0 评论 -
为什么不能在构造函数中调用shared_from_this
先看示例代码:class Chicken : public enable_shared_from_this{public: Chicken() { shared_ptr chicken_ptr = shared_from_this(); //throw std::bad_weak_ptr }};再看shared_from_this()的转载 2014-05-24 15:51:25 · 2200 阅读 · 0 评论 -
boost 编译命令
Windows下: bjam.exe --build-type=minimal --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread toolset=msvc-9.0 variant=release li原创 2014-04-18 09:13:35 · 977 阅读 · 0 评论