- 博客(3)
- 收藏
- 关注
转载 结构体如果没有重载比较运算符,不能直接进行比较
开始。#include struct dt64bit{ int m_date; int m_time;public: dt64bit() :m_date(0), m_time(0){} dt64bit(int _date, int _time) :m_date(_date), m_time(_time){}// bool operator<(cons
2016-01-29 00:49:54 1894 1
原创 cpplinq中发现的const用法
开始。#include #include #include "cpplinq.hpp"class tm32bit{public: tm32bit(int _time = 0) :m_time(_time) {} bool operator<(const tm32bit& _that) /* */ { return m_time < _that.m_time ? tr
2016-01-28 21:41:20 864
转载 boost::asio::io_service和io_service::work和boost::thread_group配合使用
学习boost的//注释中的Page是指:Boost程序库完全开发指南(第三版)#include //Page542: 在头文件前定义此宏,它就会向标准流cerr输出运行日志。//#define BOOST_ASIO_ENABLE_HANDLER_TRACKING#include #include long boost_thread_id_to_long(boost::thr
2016-01-12 16:32:39 5672
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人