kirory 最近的时间轴更新
kirory

kirory

V2EX 第 573336 号会员,加入于 2022-02-20 23:53:23 +08:00
kirory 最近回复了
qemu
https://www.kitware.com/import-cmake-the-experiment-is-over/ 虽然这些工具都已经 Release 了,但随系统分发的不一定是
用 gcc-14, clang-17 ,等 Clion 更新
工具链普及前还是不方便,建议等
98 天前
回复了 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
#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   ·   我们的愿景   ·   实用小工具   ·   1208 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 18:06 · PVG 02:06 · LAX 11:06 · JFK 14:06
Developed with CodeLauncher
? Do have faith in what you're doing.


http://www.vxiaotou.com