10 2014 档案
摘要:阅读Loki中Funtion源码之后的个人理解,该库归纳起来可以说有三层(C++设计新思维列举到2个参数,此处列举到3个参数),要记住C++的模板其实就是C语言高级的宏定义,如果用户没有用到对应的模板编译器是不会生成对应代码的。第一层: template class ThreadingMod...
阅读全文
摘要:#include void test_lexical_cast(){ int number = 123; string str = "456"; try { int tmp1 = boost::lexical_cast(str); string t...
阅读全文
摘要:Loki中的ThreadPool目的主要是对创建出来的线程进行复用。ThreadPool在Test而非Loki目录下,因此并非是标准Loki的组件之一,不过我们可以对其修改定制,下面是对其源码的大致分析,ThreadPool顾名思义线程池,一般我们使用线程的时候CreateThread调用我们的回调...
阅读全文
摘要:http://blog.sina.com.cn/s/blog_7632c6010100u1et.htmlhttp://www.codeproject.com/Tips/197097/Converting-ANSI-to-Unicode-and-backhttp://www.codeproject.c...
阅读全文