Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1688029
  • 博文数量: 347
  • 博客积分: 9328
  • 博客等级: 中将
  • 技术积分: 2680
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-29 23:45
文章分类

全部博文(347)

文章存档

2016年(1)

2013年(4)

2012年(207)

2011年(85)

2010年(50)

发布时间:2012-12-24 00:02:38

原文:http://blog.csdn.net/langlang2671/article/details/8290678当hash_map中使用string为key时,需用户扩展命名空间,否则报错如下:/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../include/c++/3.4.5/ext/hashtable.h:518: error: no match for call to `(const __gnu_cxx::hash<std::string>) (const std::basic_string<char, std......【阅读全文】

阅读(4129) | 评论(0) | 转发(0)

发布时间:2012-12-19 10:51:13

#include <iostream> #ifdef WIN32 #include <windows.h> #else #include <sys/time.h> #endif using std::cout; using std::endl; long GetMillisecond() {     long    lMillisecond = 0L; #ifdef WIN32     SYSTEMTIME   ......【阅读全文】

阅读(1930) | 评论(0) | 转发(2)

发布时间:2012-12-17 11:33:02

Folly,FackBook的一个C++底层库,一切为了性能https://github.com/facebook/folly原文:http://developer.51cto.com/art/201206/340607.htmFolly与Boost、当然还有std等组件库的关系是互为补充,而不是彼此竞争。实际上,只有当我们需要的东西既没有,也无法满足所需的性能要求时,我们才开始定义自己的组件。性能问题贯穿着Folly的大部分,有时导致比较具有特质性的设计(比如PackedSyncPtr.h和SmallLocks.h)。整体上确保良好的性能是所有Folly的统一主题。逻辑设计Folly是一组相......【阅读全文】

阅读(1617) | 评论(0) | 转发(1)

发布时间:2012-12-15 10:44:28

GCC:#include using namespace __gnu_cxx;struct compare_str{????bool operator()(const char* p1, const char*p2) const????{????????return strcmp(p1, p2) == 0;????}};int main(int argc, ......【阅读全文】

阅读(3617) | 评论(0) | 转发(0)

发布时间:2012-12-11 10:35:37

原文:http://blog.csdn.net/yuezhiren/article/details/8094755文章记录了交叉编译google protobuf 的整个过程。build 环境:             OS/hardware-platform :  Linux ubuntu 3.2.0-32-generic-pae #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012 i686 i686 i386 GNU/Linux      &nb......【阅读全文】

阅读(3190) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

chinaunix网友2010-12-30 16:34

你好,我在百度文库上看了你的ramdisk教程,但是有一个地方卡住了,映象根目录一直是C盘无法更改,保存的时候提示RAM磁盘映象保存操作失败。请问下是什么原因呢? 我QQ 337296,email 337296@qq.com 请指点一下,不胜感激,谢谢!

回复 |  删除 |  举报
留言热议
请登录后留言。

登录 注册