Код: Выделить всё
#include
#include
void foo(const std::string& string)
{
std::pmr::vector _vec;
std::pmr::string s{string, _vec.get_allocator()}; // compiles
_vec.emplace_back(string, _vec.get_allocator()); // does not compiles
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... r-provided
Мобильная версия