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...
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...