cxiaobao 最近的时间轴更新
cxiaobao

cxiaobao

V2EX 第 62797 号会员,加入于 2014-05-16 11:29:54 +08:00
cxiaobao 最近回复了
15 天前
回复了 hwdq0012 创建的主题 C++ c++调试遇到奇怪问题
template <class T>
1018 static inline std::unique_ptr<T> fromJsonString(const std::string&& str)
1019 {
1020 std::unique_ptr<T> model = std::make_unique<T>();
1021 privates::jsonType<T>::type::from_jsonStr(std::move(*model), std::move(str), 0, static_cast<int>(str.length() - 1));
1022 ~~~~~~~~~~~~~~ model 是移动语义进入 from_jsonStr 方法的,如果 from_jsonStr 取走了数据所有权,model 会被清空
1023 return model;
~~~~~~~~~ 这里不应该返回 model ,因为 model 可能已经被清空了,
通常,from_jsonStr 应该返回一个对象,这个对象取得了原本 model 中的数据,应该考虑返回这个对象
1024 }
148 天前
回复了 tianwm 创建的主题 云计算 阿里云不讲武德啊, 轻量香港被限速到 7Mbps
才注意到,真的被限制了。
217 天前
回复了 cainiaochaocai 创建的主题 NAS 自组 NAS,求指点
畅网 n100 开发板(带 m2 一转 4 ):750
M2 转 6 口 SATA:100
3D 打印 NAS 机箱(带 2.5 盘位 x2 ):300
6 盘位 QNAS 背板:250
9 寸散热风扇 x2: 50

3.5 x 6 + 2.5 x 2 + M2 x 4
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1068 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 23:27 · PVG 07:27 · LAX 16:27 · JFK 19:27
Developed with CodeLauncher
♥ Do have faith in what you're doing.