kirory 最近的时间轴更新
kirory

kirory

V2EX 第 573336 号会员,加入于 2022-02-20 23:53:23 +08:00
今日活跃度排名 19372
kirory 最近回复了
24 天前
回复了 LitterGopher 创建的主题 Linux 请问如何在一台 Linux 上加载另一台 Linux
qemu
https://www.kitware.com/import-cmake-the-experiment-is-over/ 虽然这些工具都已经 Release 了,但随系统分发的不一定是
用 gcc-14, clang-17 ,等 Clion 更新
工具链普及前还是不方便,建议等
59 天前
回复了 sbldehanhan 创建的主题 C++ 如何在 C++中实现这个效果?
class DummyStream{
public:
template<typename T>
DummyStream operator << (const T&) const {
return * this;
}
};


#ifdef DEBUG
#define dprintf(x...) std::cout
#else
#define dprintf(x...) DummyStream{}
#endif
60 天前
回复了 rabbbit 创建的主题 C++ C++ 如何在函数中获取作为参数的数组的长度?
#include <span>
#include <iostream>

void f(std::span<int> arr ){
std::cout << arr.size() <<"\n";
}
int main(){
int arr[] = {1,2,3};
f(arr);
}
5W 也不多啊,真有性能问题直接放应用里放个 map 不就行了
wstring 不是 Unicode
wstring 不是 Unicode
wstring 不是 Unicode
nlohmann/json 需要 utf-8 encoded string 而不是 wstring
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   948 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 21:51 · PVG 05:51 · LAX 14:51 · JFK 17:51
Developed with CodeLauncher
♥ Do have faith in what you're doing.