int64_t Literal Constant?
事情源於一個 error:
#include <algorithm>
#include <iostream>
int main() {
int64_t a = 2;
std::cout << std::min(1L, a) << std::endl; // mac 上編不過
std::cout << std::min(1LL, a) << std::endl; // ubuntu 20.04 上編不過
return 0;
}
無論是 1L 還是 1LL 都沒...
notes.mukyu.dev1 min read