未来心不可得

标签 c++ 下的文章

September 23, 2021

C++11 SFINAE

时隔多日,终于弄懂如何运用。。。序 c++ template一个template的普通用法template<typename T> T inc(T in) { return T + 1; }SFINAE#include <iostream> #include <type_traits> //case 0 template<int X, typena...
May 1, 2020

ABI, dll-boundary, STL, and unique_ptr?

To see a lot of reference, there's some differences of ideas about that:Is it safety to use std::shared_ptr and std::unique_ptr at DLL boundary?Pros:Safe to use std::unique_ptr : https://www.codepr...