Example Run this code #include <cstddef>#include <iostream>#include <memory>#include <memory_resource>#include <vector>classValue{inti;public:Value(inti):i(i){std::cout<<"Value(), i = "<<i<<'\n';}~Value(){std::
Example Run this code #include <cstddef>#include <iostream>#include <memory>#include <memory_resource>#include <vector>classValue{inti;public:Value(inti):i(i){std::cout<<"Value(), i = "<<i<<'\n';}~Value(){std::cout<<"~Value(), i = "<<i<<'\n';}voidprint()const{std::co...
Live snippet:https://godbolt.org/z/ddYr6TYb1 Note: the mismatch was found by running thestd::boyer_moore_searcherexample snippet on cppreference:https://godbolt.org/z/Gsx6dWPYn. Likely it has the same underlying issue, although this one does not require c++20 to reproduce. Theallocationd...