#include <vector>
const size_t i = 20;
int main()
{
//auto p = std::make_pair<void*, size_t>(nullptr, i); // doesn't work
auto p = std::pair<void*, size_t>(nullptr, i); //works
}
gcc 9.2.0, собираю с -std=c++17
#include <vector>
const size_t i = 20;
int main()
{
//auto p = std::make_pair<void*, size_t>(nullptr, i); // doesn't work
auto p = std::pair<void*, size_t>(nullptr, i); //works
}
gcc 9.2.0, собираю с -std=c++17