1 |
strcpy_s(dest, strlen(src),src); |
So. I typo’ed up some template code the other day. And once again I learned the importance of using several c++ compilers. Here is a very reduced version of my code:
1 2 3 4 5 6 7 8 9 10 |
#include <utility> template <typename T> auto foo(const T& t) -> decltype(x.first) { return t.first; } int main() { foo(std::make_pair(1,2)); return 0; } |
And let’s start with the compiler I was…
Recent Comments